Package svnmailer :: Module subversion :: Class VersionedPathDescriptor
[hide private]

Class VersionedPathDescriptor

source code

    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.

Instance Methods [hide private]
 
init(self, *args, **kwargs)
Custom initialization
source code
 
_init(self, revision, change)
Initialization
source code
int
getBaseRevision(self)
Returns the revision number of the original path
source code
str
getBasePath(self)
Returns the original path
source code
dict
getModifiedProperties(self)
Returns the dict of modified properties
source code
bool
isDirectory(self)
Returns whether the path is a directory
source code
bool
isBinary(self)
Returns whether one of the revisions is a binary file
source code
bool
hasPropertyChanges(self)
Returns whether the path has property changes
source code
bool
hasContentChanges(self)
Returns whether the path has content changes
source code
bool
wasDeleted(self)
Returns whether the path was deleted
source code
bool
wasAdded(self)
Returns whether the path was added
source code
bool
wasModified(self)
Returns whether the path was just modified
source code
bool
wasCopied(self)
Returns whether the path was copied
source code

Inherited from PathDescriptor: __cmp__, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
svn_repos.ChangedPath _change
The change
int revision
The revision number

Inherited from PathDescriptor: path, repos

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self, *args, **kwargs)

source code 

Custom initialization

Overrides: PathDescriptor.init

_init(self, revision, change)

source code 

Initialization

Parameters:
  • revision (int) - The revision number
  • change (svn_repos.ChangedPath) - The change specification

getBaseRevision(self)

source code 

Returns the revision number of the original path

Returns: int
The revision number

getBasePath(self)

source code 

Returns the original path

Returns: str
The path

getModifiedProperties(self)

source code 

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: dict
The dict of changed properties

isDirectory(self)

source code 

Returns whether the path is a directory

Returns: bool
is a directory?
Overrides: PathDescriptor.isDirectory

isBinary(self)

source code 

Returns whether one of the revisions is a binary file

Returns: bool
is binary?

hasPropertyChanges(self)

source code 

Returns whether the path has property changes

Returns: bool
has property changes?

hasContentChanges(self)

source code 

Returns whether the path has content changes

Returns: bool
has content changes?

wasDeleted(self)

source code 

Returns whether the path was deleted

Returns: bool
was deleted?

wasAdded(self)

source code 

Returns whether the path was added

Returns: bool
was added?

wasModified(self)

source code 

Returns whether the path was just modified

Returns: bool
was modified?

wasCopied(self)

source code 

Returns whether the path was copied

Returns: bool
was copied?