프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$sourceroot | string | The source root of the repository. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_cache | Horde_Cache | If caching is desired, a Horde_Cache object. | |
$_cacheVersion | integer | Current cache version. | |
$_diffTypes | array | The available diff types. | |
$_driver | string | The current driver. | |
$_features | array | Driver features. | |
$_paths | array | Hash with the locations of all necessary binaries. | |
$_users | array | Hash caching the parsed users file. |
메소드 | 설명 | |
---|---|---|
__construct ( $params = [] ) | Constructor. | |
abbrev ( string $rev ) : string | Returns an abbreviated form of the revision, for display. | |
annotate ( $fileob, $rev ) | TODO | |
assertValidRevision ( mixed $rev ) | Throw an exception if the revision number isn't valid. | |
availableDiffTypes ( ) : array | Return the list of available diff types. | |
checkout ( string $fullname, string $rev ) : resource | Function which returns a file pointing to the head of the requested revision of a file. | |
cmp ( string $rev1, string $rev2 ) : integer | Given two revisions, this figures out which one is greater than the the other. | |
diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts = [] ) : string | Obtain the differences between two revisions of a file. | |
getDefaultBranch ( ) | ||
getDirectory ( string $where, array $opts = [] ) : Horde_Vcs_Directory_Base | Returns a directory object. | |
getFile ( $filename, $opts = [] ) | TODO | |
getPatchset ( array $opts = [] ) : Horde_Vcs_Patchset | TODO | |
getPath ( string $binary ) : boolean | string | Returns the location of the specified binary. | |
getRevisionRange ( Horde_Vcs_File_Base $file, string $r1, string $r2 ) : array | Create a range of revisions between two revision numbers. | |
getUsers ( $usersfile ) : array | Parse the users file, if present in the sourceroot, and return a hash containing the requisite information, keyed on the username, and with the 'desc', 'name', and 'mail' values inside. | |
hasFeature ( $feature ) : boolean | Does this driver support the given feature? | |
isFile ( $where ) | TODO | |
isValidRevision ( mixed $rev ) : boolean | Validation function to ensure that a revision string is of the right form. | |
popen ( string $cmd, string $mode = 'r' ) : resource | Wrapper around popen() for locale-safe results. |
메소드 | 설명 | |
---|---|---|
_diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts ) : string | boolean | Obtain the differences between two revisions of a file. | |
_humanReadableDiff ( array $raw ) : array | Obtain a tree containing information about the changes between two revisions. |
protected _diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts ) : string | boolean | ||
$file | Horde_Vcs_File_Base | The desired file. |
$rev1 | string | Original revision number to compare from. |
$rev2 | string | New revision number to compare against. |
$opts | array | The following optional options: - 'num': (integer) DEFAULT: 3 - 'type': (string) DEFAULT: 'unified' - 'ws': (boolean) DEFAULT: true |
리턴 | string | boolean | False on failure, or a string containing the diff on success. |
protected _humanReadableDiff ( array $raw ) : array | ||
$raw | array | An array of lines of the raw unified diff, normally obtained through Horde_Vcs_Diff::get(). |
리턴 | array | @TODO |
public assertValidRevision ( mixed $rev ) | ||
$rev | mixed | The revision number. |
public availableDiffTypes ( ) : array | ||
리턴 | array | The list of available diff types for use with get(). |
public diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts = [] ) : string | ||
$file | Horde_Vcs_File_Base | The desired file. |
$rev1 | string | Original revision number to compare from. |
$rev2 | string | New revision number to compare against. |
$opts | array | The following optional options: - 'human': (boolean) DEFAULT: false - 'num': (integer) DEFAULT: 3 - 'type': (string) DEFAULT: 'unified' - 'ws': (boolean) DEFAULT: true |
리턴 | string | The diff string. |
public getDirectory ( string $where, array $opts = [] ) : Horde_Vcs_Directory_Base | ||
$where | string | Path to the directory. |
$opts | array | Any additional options (depends on driver): - 'showattic': (boolean) Parse any Attic/ sub-directory contents too. - 'rev': (string) Generate directory list for a certain branch or revision. |
리턴 | Horde_Vcs_Directory_Base | A directory object. |
public getPatchset ( array $opts = [] ) : Horde_Vcs_Patchset | ||
$opts | array | Options: - 'file': (string) The filename to process. REQUIRED for this driver. - 'range': (array) The patchsets to process. DEFAULT: None (all patchsets are processed). - 'timezone': (string) The current timezone. |
리턴 | Horde_Vcs_Patchset | Patchset object. |
public hasFeature ( $feature ) : boolean | ||
리턴 | boolean | True if driver supports the given feature. |
abstract public isValidRevision ( mixed $rev ) : boolean | ||
$rev | mixed | The purported revision string. |
리턴 | boolean | True if a valid revision string. |
protected Horde_Cache $_cache | ||
리턴 | Horde_Cache |
protected array $_paths | ||
리턴 | array |