Package trac :: Package versioncontrol :: Module cache :: Class CachedChangeset

Class CachedChangeset

source code

   object --+    
            |    
api.Changeset --+
                |
               CachedChangeset

Instance Methods
 
__init__(self, repos, rev, env)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_changes(self)
Generator that produces a tuple for every change in the changeset.
source code
 
get_properties(self)
Returns the properties (meta-data) of the node, as a dictionary.
source code

Inherited from api.Changeset: can_view, get_branches

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

Class Variables

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

Properties

Inherited from api.Changeset: resource

Inherited from object: __class__

Method Details

__init__(self, repos, rev, env)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ 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: api.Changeset.get_changes
(inherited documentation)

get_properties(self)

source code 

Returns the properties (meta-data) of the node, as a dictionary.

The set of properties depends on the version control system.

Warning: this used to yield 4-elements tuple (besides name and text, there were wikiflag and htmlclass values). This is now replaced by the usage of IPropertyRenderer (see #1601).

Overrides: api.Changeset.get_properties
(inherited documentation)