Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/rcslib.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Sun Apr 10 20:09:28 2016
Кодировка:

Поисковые слова: южная атлантическая аномалия
Python: module rcslib
 
 
rcslib (version 01/28/04)
index
rcslib.py

RCS interface module.
 
Defines the class RCS, which represents a directory with rcs version
files and (possibly) corresponding work files.
 
   MODIFICATION HISTORY --
 
   o Updated 12/29/03 RSK - Added check for revision not being None, for 
                            processing of collections

 
Modules
       
fnmatch
os
re
string
tempfile

 
Classes
       
RCS

 
class RCS
    RCS interface class (local filesystem version).
 
An instance of this class represents a directory with rcs version
files and (possible) corresponding work files.
 
Methods provide access to most rcs operations such as
checkin/checkout, access to the rcs metadata (revisions, logs,
branches etc.) as well as some filesystem operations such as
listing all rcs version files.
 
XXX BUGS / PROBLEMS
 
- The instance always represents the current directory so it's not
very useful to have more than one instance around simultaneously
 
  Methods defined here:
__del__(self)
Destructor.
__init__(self)
Constructor.
checkfile(self, name_rev)
Normalize NAME_REV into a (NAME, REV) tuple.
 
Raise an exception if there is no corresponding version file.
checkin(self, name_rev, message=None, otherflags='')
Check in NAME_REV from its work file.
 
The optional MESSAGE argument becomes the checkin message
(default "<none>" if None); or the file description if this is
a new file.
 
The optional OTHERFLAGS argument is passed to ci without
interpretation.
 
Any output from ci goes to directly to stdout.
checkout(self, name_rev, withlock=0, otherflags='')
Check out NAME_REV to its work file.
 
If optional WITHLOCK is set, check out locked, else unlocked.
 
The optional OTHERFLAGS is passed to co without
interpretation.
 
Any output from co goes to directly to stdout.
content(self, name_rev, otherflags='')
Return two strings, one containing the rcs element
and the other the name and version number of the element.
fetch(self, name_rev, otherflags='')
Checks out to disk the element.
info(self, name_rev)
Return a dictionary of info (from rlog) for NAME_REV
 
The dictionary's keys are the keywords that rlog prints
(e.g. 'head' and its values are the corresponding data
(e.g. '1.3').
 
XXX locks are not returned
islocked(self, name_rev)
Test whether FILE (which must have a version file) is locked.
 
XXX This does not tell you which revision number is locked and
ignores any revision you may pass in (by virtue of using rlog
-L -R).
isvalid(self, name)
Test whether NAME has a version file associated.
listfiles(self, pat=None)
Return a list of all version files matching optional PATTERN.
lock(self, name_rev)
Set an rcs lock on NAME_REV.
log(self, name_rev, otherflags='')
Return the full log text for NAME_REV as a string.
 
Optional OTHERFLAGS are passed to rlog.
rcsname(self, name)
Return the pathname of the version file for NAME.
 
The argument can be a work file name or a version file name.
If the version file does not exist, the name of the version
file that would be created by "ci" is returned.
realname(self, namev)
Return the pathname of the work file for NAME.
 
The argument can be a work file name or a version file name.
If the work file does not exist, the name of the work file
that would be created by "co" is returned.
unlock(self, name_rev)
Clear an rcs lock on NAME_REV.

Data and other attributes defined here:
okchars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_=+'

 
Data
        __version__ = '01/28/04'