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

Class VersionedPathDescriptor

    object --+    
             |    
PathDescriptor --+
                 |
                VersionedPathDescriptor


Describes the changes of a particular path

This is a wrapper around svn_repos.ChangedPath instances. outside of this module one shouldn't need to deal with these.


Method Summary
  _init(self, revision, change)
Initialization
str getBasePath(self)
Returns the original path
int getBaseRevision(self)
Returns the revision number of the original path
dict getModifiedProperties(self)
Returns the dict of modified properties
bool hasContentChanges(self)
Returns whether the path has content changes
bool hasPropertyChanges(self)
Returns whether the path has property changes
  init(self, *args, **kwargs)
Custom initialization
bool isBinary(self)
Returns whether one of the revisions is a binary file
  isDirectory(self)
Returns whether the path is a directory
bool wasAdded(self)
Returns whether the path was added
bool wasCopied(self)
Returns whether the path was copied
bool wasDeleted(self)
Returns whether the path was deleted
bool wasModified(self)
Returns whether the path was just modified
    Inherited from PathDescriptor
  __init__(self, repos, path, *args, **kwargs)
Initialization
int __cmp__(self, other)
Compares two change objects by path
    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
svn_repos.ChangedPath _change: The change
int revision: The revision number
    Inherited from PathDescriptor
str path: The path, we're talking about
Repository repos: The repository this change belongs to

Method Details

_init(self, revision, change)

Initialization
Parameters:
revision - The revision number
           (type=int)
change - The change specification
           (type=svn_repos.ChangedPath)

getBasePath(self)

Returns the original path
Returns:
The path
           (type=str)

getBaseRevision(self)

Returns the revision number of the original path
Returns:
The revision number
           (type=int)

getModifiedProperties(self)

Returns the dict of modified properties

The dict contains the property names as keys and a 2-tuple as value where the first element contains the old property value and second element the new one.

Returns:
The dict of changed properties
           (type=dict)

hasContentChanges(self)

Returns whether the path has content changes
Returns:
has content changes?
           (type=bool)

hasPropertyChanges(self)

Returns whether the path has property changes
Returns:
has property changes?
           (type=bool)

init(self, *args, **kwargs)

Custom initialization
Overrides:
svnmailer.subversion.PathDescriptor.init

isBinary(self)

Returns whether one of the revisions is a binary file
Returns:
is binary?
           (type=bool)

isDirectory(self)

Returns whether the path is a directory
Overrides:
svnmailer.subversion.PathDescriptor.isDirectory

wasAdded(self)

Returns whether the path was added
Returns:
was added?
           (type=bool)

wasCopied(self)

Returns whether the path was copied
Returns:
was copied?
           (type=bool)

wasDeleted(self)

Returns whether the path was deleted
Returns:
was deleted?
           (type=bool)

wasModified(self)

Returns whether the path was just modified
Returns:
was modified?
           (type=bool)

Instance Variable Details

_change

The change
Type:
svn_repos.ChangedPath

revision

The revision number
Type:
int

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