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

Class _PathChangeDescriptor

object --+
         |
        _PathChangeDescriptor


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, repos, path, revision, change)
Initialization
int __cmp__(self, other)
Compares two change objects by path
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
bool isBinary(self)
Returns whether one of the revisions is a binary file
bool 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 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
str path: The path, we're talking about
Repository repos: The repository this change belongs to
int revision: The revision number

Method Details

__init__(self, repos, path, revision, change)
(Constructor)

Initialization
Parameters:
repos - The repository reference
           (type=Repository)
path - The path
           (type=str)
revision - The revision number
           (type=int)
change - The change specification
           (type=svn_repos.ChangedPath)
Overrides:
__builtin__.object.__init__

__cmp__(self, other)
(Comparison operator)

Compares two change objects by path
Parameters:
other - The object compared to
           (type=hopefully _PathChangeDescriptor)
Returns:
Returns -1, 0 or 1
           (type=int)

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)

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
Returns:
is a directory?
           (type=bool)

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

path

The path, we're talking about
Type:
str

repos

The repository this change belongs to
Type:
Repository

revision

The revision number
Type:
int

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