Part of lp.code.interfaces.revision View In Hierarchy
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. |
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.
Parameters | allow_private | If True, a public or private branch may be returned. Otherwise only a public branch may be returned. |
allow_junk | If True junk branches are acceptable, if False, only non-junk branches are returned. | |
Returns | A Branch or None if an appropriate branch cannot be found. |