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.
    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

Method Details

__init__(self, repos_path)
(Constructor)

Open the repository
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 like object)
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)

Instance Variable Details

path

The path to the repository
Type:
unicode

Generated by Epydoc 2.0 on Mon Feb 14 16:49:17 2005 http://epydoc.sf.net