Class VC_File_svn

Description

VC_svn file class.

Copyright Anil Madhavapeddy, <anil@recoil.org>

Located in /VC/VC/svn.php (line 499)

VC_File
   |
   --VC_File_svn
Method Summary
 VC_File_svn VC_File_svn ( $rep, string $fl, [ $quicklog = false])
 void applySort ([how $how = VC_SORT_REV])
 mixed getBrowseInfo ()
 void &getFileObject ( $rep,  $filename, [ $cache = null], [ $quicklog = false])
 true isAtticFile ()
 Fully queryFullPath ()
 HEAD queryHead ()
 VC_Log queryLastLog ()
 string queryModulePath ()
 Filename queryName ()
 void queryPreviousRevision ( $rev)
 Filename queryRepositoryName ()
 Last queryRevision ()
 void sortByAge ( $a,  $b)
 void sortByName ( $a,  $b)
 void sortByRevision ( $a,  $b)
Variables
Methods
Constructor VC_File_svn (line 507)

Create a repository file object, and give it information about what its parent directory and repository objects are.

VC_File_svn VC_File_svn ( $rep, string $fl, [ $quicklog = false])
  • string $fl: Full path to this file.
  • $rep
  • $quicklog
applySort (line 640)

Sort the list of VC_Log objects that this file contains.

void applySort ([how $how = VC_SORT_REV])
  • how $how: VC_SORT_REV (sort by revision), VC_SORT_NAME (sort by author name), VC_SORT_AGE (sort by commit date)
getBrowseInfo (line 684)

Populate the object with information about the revisions logs and dates of the file.

  • return: boolean True on success, PEAR_Error On error.
mixed getBrowseInfo ()
getFileObject (line 520)
void &getFileObject ( $rep,  $filename, [ $cache = null], [ $quicklog = false])
  • $rep
  • $filename
  • $cache
  • $quicklog
isAtticFile (line 557)

If this file is present in an Attic directory, this indicates it.

  • return: if file is in the Attic, and false otherwise
true isAtticFile ()
queryFullPath (line 726)

Return the fully qualified filename of this object.

  • return: qualified filename of this object
Fully queryFullPath ()
queryHead (line 615)

Return the HEAD (most recent) revision number for this file.

  • return: revision number
HEAD queryHead ()
queryLastLog (line 625)

Return the last VC_Log object in the file.

  • return: of the last entry in the file
VC_Log queryLastLog ()
queryModulePath (line 736)

Return the name of this file relative to its sourceroot.

  • return: Pathname relative to the sourceroot.
string queryModulePath ()
queryName (line 579)

Returns name of the current file without the repository extensions (usually ,v)

  • return: without repository extension
Filename queryName ()
queryPreviousRevision (line 597)
void queryPreviousRevision ( $rev)
  • $rev
queryRepositoryName (line 568)

Returns the name of the current file as in the repository

  • return: (without the path)
Filename queryRepositoryName ()
queryRevision (line 589)

Return the last revision of the current file on the HEAD branch

  • return: revision of the current file
Last queryRevision ()
sortByAge (line 667)
void sortByAge ( $a,  $b)
  • $a
  • $b
sortByName (line 672)
void sortByName ( $a,  $b)
  • $a
  • $b
sortByRevision (line 662)

The sortBy*() functions are internally used by applySort.

void sortByRevision ( $a,  $b)
  • $a
  • $b

Inherited Methods

Inherited From VC_File

 VC_File::setRepository()

Documentation generated on Sun, 30 Jan 2011 05:22:29 +0000 by phpDocumentor 1.4.3