;ò hkDc@sdZdkZdkZdZdZdZdZdZdfd„ƒYZd fd „ƒYZ d fd „ƒYZ d e fd„ƒYZ de fd„ƒYZ de fd„ƒYZde fd„ƒYZdkZdkZdkZd„Zdfd„ƒYZdS(sQVersion Control lib is an abstract API to access versioning systems such as CVS. NsFILEsDIRiiis RepositorycBsPtZdZd„Zd„Zd„Zd„Zd„Zhd„Zd„Z RS(s)Abstract class representing a repository.cCsdS(s3Return the type of the item (file or dir) at the given path and revision The result will be vclib.DIR or vclib.FILE The path is specified as a list of components, relative to the root of the repository. e.g. ["subdir1", "subdir2", "filename"] rev is the revision of the item to check N((sselfs path_partssrev((slib/vclib/__init__.pysitemtype#s cCsdS(soOpen a file object to read file contents at a given path and revision. The return value is a 2-tuple of containg the file object and revision number in canonical form. The path is specified as a list of components, relative to the root of the repository. e.g. ["subdir1", "subdir2", "filename"] rev is the revision of the file to check out N((sselfs path_partssrev((slib/vclib/__init__.pysopenfile/s cCsdS(sPReturn list of files in a directory The result is a list of DirEntry objects The path is specified as a list of components, relative to the root of the repository. e.g. ["subdir1", "subdir2", "filename"] rev is the revision of the directory to list options is a dictionary of implementation specific options N((sselfs path_partssrevsoptions((slib/vclib/__init__.pyslistdir;s cCsdS(sÝAugment directory entries with log information New properties will be set on all of the DirEntry objects in the entries list. At the very least, a "rev" property will be set to a revision number or None if the entry doesn't have a number. Other properties that may be set include "date", "author", and "log". The path is specified as a list of components, relative to the root of the repository. e.g. ["subdir1", "subdir2", "filename"] rev is the revision of the directory listing and will effect which log messages are returned entries is a list of DirEntry objects returned from a previous call to the listdir() method options is a dictionary of implementation specific options N((sselfs path_partssrevsentriessoptions((slib/vclib/__init__.pysdirlogsHscCsdS(s^Retrieve an item's log information The result is a list of Revision objects The path is specified as a list of components, relative to the root of the repository. e.g. ["subdir1", "subdir2", "filename"] rev is the revision of the item to return information about options is a dictionary of implementation specific options N((sselfs path_partssrevsoptions((slib/vclib/__init__.pysitemlog\s cCsdS(s¯Return a diff (in GNU diff format) of two file revisions type is the requested diff type (UNIFIED, CONTEXT, etc) options is a dictionary that can contain the following options plus implementation-specific options context - integer, number of context lines to include funout - boolean, include C function names ignore_white - boolean, ignore whitespace Return value is a python file object N((sselfs path_parts1srev1s path_parts2srev2stypesoptions((slib/vclib/__init__.pysrawdiffis cCsdS(soReturn a list of annotate file content lines and a revision. The annotated lines are an collection of objects with the following addressable members: text - raw text of a line of file contents line_number - line number on which the line is found rev - revision in which the line was last modified prev_rev - revision prior to 'rev' author - author who last modified the line date - date on which the line was last modified, in seconds since the epoch, GMT These object are sort by their line_number components. N((sselfs path_partssrev((slib/vclib/__init__.pysannotatexs( s__name__s __module__s__doc__sitemtypesopenfileslistdirsdirlogssitemlogsrawdiffsannotate(((slib/vclib/__init__.pys Repository s   sDirEntrycBstZdZgd„ZRS(s0Instances represent items in a directory listingcCs||_||_||_dS(N(snamesselfskindserrors(sselfsnameskindserrors((slib/vclib/__init__.pys__init__Žs  (s__name__s __module__s__doc__s__init__(((slib/vclib/__init__.pysDirEntry‹s sRevisioncBs tZdZd„Zd„ZRS(sBInstances holds information about revisions of versioned resourcescCsC||_||_||_||_||_||_||_dS(N(snumbersselfsstringsdatesauthorschangedslogssize(sselfsnumbersstringsdatesauthorschangedslogssize((slib/vclib/__init__.pys__init__Ÿs      cCst|i|iƒSdS(N(scmpsselfsnumbersother(sselfsother((slib/vclib/__init__.pys__cmp__¨s(s__name__s __module__s__doc__s__init__s__cmp__(((slib/vclib/__init__.pysRevision“s   sErrorcBstZRS(N(s__name__s __module__(((slib/vclib/__init__.pysError­ss ReposNotFoundcBstZRS(N(s__name__s __module__(((slib/vclib/__init__.pys ReposNotFound¯ss ItemNotFoundcBstZd„ZRS(NcCsIt|ƒtitifjoti|dƒ}nti||ƒdS(Ns/( stypespathstypess TupleTypesListTypesstringsjoinsErrors__init__sself(sselfspath((slib/vclib/__init__.pys__init__²s(s__name__s __module__s__init__(((slib/vclib/__init__.pys ItemNotFound±ssInvalidRevisioncBstZed„ZRS(NcCs?|tjoti|dƒnti|dt|ƒƒdS(NsInvalid revisionsInvalid revision (srevisionsNonesErrors__init__sselfsstr(sselfsrevision((slib/vclib/__init__.pys__init__¹s (s__name__s __module__sNones__init__(((slib/vclib/__init__.pysInvalidRevision¸scCsg}|tjo:|idƒo|id|dƒqÅ|idƒny|tjo:|idƒo|id|dƒqÅ|idƒn2|tjo|idƒ|idƒnt‚|i dd ƒo|id ƒn|i d d ƒo|id ƒn|Sd S(s1generate argument list to pass to diff or rcsdiffscontexts --context=%is-cs --unified=%is-us--side-by-sides --width=164sfunoutis-ps ignore_whites-wN( sargsstypesCONTEXTsoptionsshas_keysappendsUNIFIEDs SIDE_BY_SIDEsNotImplementedErrorsget(stypesoptionssargs((slib/vclib/__init__.pys _diff_argsÆs&    s_diff_fpcBsMtZdZeegd„Zd„Zd„Zd„Zd„Zd„Z RS(sJFile object reading a diff between temporary files, cleaning up on closecCs…||_||_|}|o|o/|id|i|ƒd|i|ƒgƒn|i||gƒt i d|dƒ|_ dS(Ns-Lsdiffsr( stemp1sselfstemp2s diff_optssargssinfo1sinfo2sextends_labelspopensfp(sselfstemp1stemp2sinfo1sinfo2s diff_optssargs((slib/vclib/__init__.pys__init__ås  /cCs|ii|ƒSdS(N(sselfsfpsreadsbytes(sselfsbytes((slib/vclib/__init__.pysreadîscCs|iiƒSdS(N(sselfsfpsreadline(sself((slib/vclib/__init__.pysreadlineñscCs†z(|io|iiƒt|_nWdz+|ioti|iƒt|_nWd|ioti|iƒt|_nXXdS(N(sselfsfpsclosesNonestemp1sossremovestemp2(sself((slib/vclib/__init__.pyscloseôs    cCs|iƒdS(N(sselfsclose(sself((slib/vclib/__init__.pys__del__scCsF|\}}}|otidti|ƒƒ}d|||fSdS(Ns%Y/%m/%d %H:%M:%Ss%s %s %s(spathsdatesrevstimesstrftimesgmtime(sselfs.2spathsdatesrev((slib/vclib/__init__.pys_labels"( s__name__s __module__s__doc__sNones__init__sreadsreadlinescloses__del__s_label(((slib/vclib/__init__.pys_diff_fpás     (s__doc__sstringstypessFILEsDIRsUNIFIEDsCONTEXTs SIDE_BY_SIDEs RepositorysDirEntrysRevisions ExceptionsErrors ReposNotFounds ItemNotFoundsInvalidRevisionspopensosstimes _diff_argss_diff_fp(sUNIFIEDsDirEntrysCONTEXTs RepositorysErrors _diff_argsspopens ItemNotFoundsInvalidRevisions ReposNotFoundstypessFILEs SIDE_BY_SIDEs_diff_fpsRevisionsosstimesDIRsstring((slib/vclib/__init__.pys?s&  k