l.c.i.r.IRevision(Interface) : interface documentation

Part of lp.code.interfaces.revision View In Hierarchy

Bazaar revision.
Int id Undocumented
Datetime date_created Undocumented
Attribute log_body The revision log message.
Attribute revision_author_id Revision author identifier id.
Attribute revision_author The revision author identifier.
Attribute gpgkey The OpenPGP key used to sign the revision.
Attribute revision_id The globally unique revision identifier.
Datetime revision_date Undocumented
Bool karma_allocated Undocumented
Attribute parents The RevisionParents for this revision.
Attribute parent_ids The revision_ids of the parent Revisions. Parent revisions are identified by their revision_id rather than a foreign key so that ghosts and parents that actually exist can be modelled in the same way.
Attribute properties The `RevisionProperty`s for this revision.
Method getProperties Return the revision properties as a dict.
Method allocateKarma Allocate karma to the revision_author for this revision.
Method getBranch Return a branch associated with this revision.
Method getLefthandParent Return lefthand parent of revision, or None if not in database.
id =
Undocumented
date_created =
Undocumented
log_body =
The revision log message.
revision_author_id =
Revision author identifier id.
revision_author =
The revision author identifier.
gpgkey =
The OpenPGP key used to sign the revision.
revision_id =
The globally unique revision identifier.
revision_date =
Undocumented
karma_allocated =
Undocumented
parents =
The RevisionParents for this revision.
parent_ids =
The revision_ids of the parent Revisions. Parent revisions are identified by their revision_id rather than a foreign key so that ghosts and parents that actually exist can be modelled in the same way.
properties =
The `RevisionProperty`s for this revision.
def getProperties():
Return the revision properties as a dict.
def allocateKarma(branch):
Allocate karma to the revision_author for this revision.
def getBranch(allow_private=False, allow_junk=True):
Return a branch associated with this revision.

The chances are that there will be many branches with any revision that has landed on the trunk branch. A branch owned by the revision author is chosen over a branch not owned by the author. A branch with the revision in the history is chosen over a branch that just has the revision in the ancestry.

Parametersallow_privateIf True, a public or private branch may be returned. Otherwise only a public branch may be returned.
allow_junkIf True junk branches are acceptable, if False, only non-junk branches are returned.
ReturnsA Branch or None if an appropriate branch cannot be found.
def getLefthandParent():
Return lefthand parent of revision, or None if not in database.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.