Package trac :: Package versioncontrol :: Module api :: Class EmptyChangeset

Class EmptyChangeset

source code

object --+    
         |    
 Changeset --+
             |
            EmptyChangeset

Changeset that contains no changes. This is typically used when the changeset can't be retrieved.
Nested Classes

Inherited from Changeset: __metaclass__

Instance Methods
 
__init__(self, repos, rev, message=None, author=None, date=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_changes(self)
Generator that produces a tuple for every change in the changeset.
source code

Inherited from Changeset: __repr__, can_view, get_bookmarks, get_branches, get_properties, get_tags, is_viewable

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

Class Variables
  __abstractmethods__ = frozenset([])

Inherited from Changeset: ADD, ALL_CHANGES, COPY, DELETE, DIFF_CHANGES, EDIT, MOVE, OTHER_CHANGES, realm

Properties

Inherited from Changeset: resource

Inherited from object: __class__

Method Details

__init__(self, repos, rev, message=None, author=None, date=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

get_changes(self)

source code 

Generator that produces a tuple for every change in the changeset.

The tuple will contain (path, kind, change, base_path, base_rev), where change can be one of Changeset.ADD, Changeset.COPY, Changeset.DELETE, Changeset.EDIT or Changeset.MOVE, and kind is one of Node.FILE or Node.DIRECTORY. The path is the targeted path for the change (which is the ''deleted'' path for a DELETE change). The base_path and base_rev are the source path and rev for the action (None and -1 in the case of an ADD change).

Overrides: Changeset.get_changes
(inherited documentation)