b.r.Revision(object) : class documentation

Part of bzrlib.revision View In Hierarchy

Known subclasses: bzrlib.foreign.ForeignRevision

Single revision on a branch.

Revisions may know their revision_hash, but only once they've been written out. This is not stored because you cannot write the hash into the file it describes.

After bzr 0.0.5 revisions are allowed to have multiple parents.

parent_ids
List of parent revision_ids
properties
Dictionary of revision properties. These are attached to the revision as extra metadata. The name must be a single word; the value can be an arbitrary string.
Method __init__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Method get_history Return the canonical line-of-history for this revision.
Method get_summary Get the first line of the log message for this revision.
Method get_apparent_authors Return the apparent authors of this revision.
Method iter_bugs Iterate over the bugs associated with this revision.
Method _check_properties Verify that all revision properties are OK.
def __init__(self, revision_id, properties=None, **args):
Undocumented
def __repr__(self):
Undocumented
def __eq__(self, other):
Undocumented
def __ne__(self, other):
Undocumented
def _check_properties(self):
Verify that all revision properties are OK.
def get_history(self, repository):
Return the canonical line-of-history for this revision.

If ghosts are present this may differ in result from a ghost-free repository.

def get_summary(self):
Get the first line of the log message for this revision.

Return an empty string if message is None.

def get_apparent_authors(self):
Return the apparent authors of this revision.

If the revision properties contain the names of the authors, return them. Otherwise return the committer name.

The return value will be a list containing at least one element.

def iter_bugs(self):
Iterate over the bugs associated with this revision.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.