Package svnmailer :: Module subversion :: Class Repository
[show private | hide private]
[frames | no frames]

Class Repository

object --+
         |
        Repository


Access to the subversion repository
Method Summary
  __init__(self, repos_path)
Open the repository
  close(self)
Destroy the pool and release the shared lock
  dumpPathContent(self, fp, path, revision)
Dump the contents of a particular path into a file
list getChangesList(self, revision)
Return the list of changes of a revisions sorted by path
str getPathMimeType(self, path, revision)
Get the MIME type of a particular path
dict getPathProperties(self, path, revision)
Get a dict of properties for a particular path/revision
str getPathProperty(self, name, path, revision)
Get the value of a particular property
str getRevisionAuthor(self, revision)
Returns the author of a particular revision
str getRevisionLog(self, revision)
Returns the log entry of a particular revision
str getRevisionProperty(self, revision, propname)
Returns the value of a revision property
int getRevisionTime(self, revision)
Returns the time of a particular rev.
_RevisionChangeCollector _getChangeCollector(self, revision)
Return the RevisionChangeCollector instance
swig object _getRevisionRoot(self, revision)
Return the root object of a particular revision
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
unicode path: The path to the repository
bool _apr_initialized: is APR initialized?
swig object _fs: Reference to the repos filesystem
dict _pathPropLists: Cached path propery lists
dict _pathProps: Cached path properties
swig object _pool: main APR pool
swig object _repos: Reference to the open repository
dict _revChanges: Cached revision change lists
dict _revProps: Cached revision properties
dict _revRoots: Cached revision root objects
dict _revTimes: Cached revision times

Method Details

__init__(self, repos_path)
(Constructor)

Open the repository
Parameters:
repos_path - The repository path as unicode
           (type=unicode)
Overrides:
__builtin__.object.__init__

close(self)

Destroy the pool and release the shared lock

dumpPathContent(self, fp, path, revision)

Dump the contents of a particular path into a file
Parameters:
fp - The file descriptor
           (type=file)
path - The path to process
           (type=str)
revision - The revision number
           (type=int)

getChangesList(self, revision)

Return the list of changes of a revisions sorted by path
Parameters:
revision - The revision
           (type=int)
Returns:
The Changes list
           (type=list)

getPathMimeType(self, path, revision)

Get the MIME type of a particular path
Parameters:
path - The path
           (type=str)
revision - The revision number
           (type=int)
Returns:
The mime type or None
           (type=str)

getPathProperties(self, path, revision)

Get a dict of properties for a particular path/revision
Parameters:
path - The path
           (type=str)
revision - The revision number
           (type=int)
Returns:
The dict of properties
           (type=dict)

getPathProperty(self, name, path, revision)

Get the value of a particular property
Parameters:
name - The name of the property
           (type=str)
path - The path the property is attached to
           (type=str)
revision - The revision number
           (type=int)
Returns:
The property value or None if the property doesn't exist.
           (type=str)

getRevisionAuthor(self, revision)

Returns the author of a particular revision
Parameters:
revision - The revision number
           (type=int)
Returns:
The author
           (type=str)

getRevisionLog(self, revision)

Returns the log entry of a particular revision
Parameters:
revision - The revision number
           (type=int)
Returns:
The log entry or None
           (type=str)

getRevisionProperty(self, revision, propname)

Returns the value of a revision property
Parameters:
revision - The revision number
           (type=int)
propname - The property name
           (type=str)
Returns:
The property value
           (type=str)

getRevisionTime(self, revision)

Returns the time of a particular rev. in seconds since epoch
Parameters:
revision - The revision number
           (type=int)
Returns:
The time
           (type=int)

_getChangeCollector(self, revision)

Return the RevisionChangeCollector instance
Parameters:
revision - The revision
           (type=int)
Returns:
The Collector instance
           (type=_RevisionChangeCollector)

_getRevisionRoot(self, revision)

Return the root object of a particular revision
Parameters:
revision - The revision number
           (type=int)
Returns:
The revision root
           (type=swig object)

Note: The root objects are cached


Instance Variable Details

path

The path to the repository
Type:
unicode

_apr_initialized

is APR initialized?
Type:
bool
Value:
False                                                                  

_fs

Reference to the repos filesystem
Type:
swig object

_pathPropLists

Cached path propery lists
Type:
dict

_pathProps

Cached path properties
Type:
dict

_pool

main APR pool
Type:
swig object
Value:
None                                                                  

_repos

Reference to the open repository
Type:
swig object

_revChanges

Cached revision change lists
Type:
dict

_revProps

Cached revision properties
Type:
dict

_revRoots

Cached revision root objects
Type:
dict

_revTimes

Cached revision times
Type:
dict

Generated by Epydoc 2.0 on Sun Sep 25 20:49:19 2005 http://epydoc.sf.net