Package trac :: Package versioncontrol :: Package web_ui :: Package tests :: Module log :: Class MockNode

Class MockNode

source code

object --+    
         |    
  api.Node --+
             |
            MockNode

Instance Methods
 
__init__(self, repos, path, rev, kind)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_history(self, limit=None)
Provide backward history for this Node.
source code

Inherited from api.Node: can_view, get_annotations, get_content, get_content_length, get_content_type, get_entries, get_last_modified, get_name, get_previous, get_processed_content, get_properties, is_viewable

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

Class Variables

Inherited from api.Node: DIRECTORY, FILE, created_path, created_rev

Properties

Inherited from api.Node: content_length, content_type, isdir, isfile, last_modified, name, resource

Inherited from object: __class__

Method Details

__init__(self, repos, path, rev, kind)
(Constructor)

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

get_history(self, limit=None)

source code 

Provide backward history for this Node.

Generator that yields (path, rev, chg) tuples, one for each revision in which the node was changed. This generator will follow copies and moves of a node (if the underlying version control system supports that), which will be indicated by the first element of the tuple (i.e. the path) changing. Starts with an entry for the current revision.

Parameters:
  • limit - if given, yield at most limit results.
Overrides: api.Node.get_history
(inherited documentation)