l.c.bzr : module documentation

Part of lp.code

Enumerations relating to Bazaar formats.
Class BazaarFormatEnum Base class for the format enums.
Class BranchFormat Branch on-disk format.
Class RepositoryFormat Repository on-disk format.
Class ControlFormat Control directory (BzrDir) format.
Function get_branch_formats Return a tuple of format enumerations for the bazaar branch.
Function branch_changed Mark a database branch as changed.
Function branch_revision_history Find the revision history of a branch.
Function get_ancestry Return a list of revision-ids integrated by a revision.
Function _format_enum Undocumented
def _format_enum(num, format, format_string=None, description=None):
Undocumented
def get_branch_formats(bzr_branch):
Return a tuple of format enumerations for the bazaar branch.
Returnstuple of (ControlFormat, BranchFormat, RepositoryFormat)
def branch_changed(db_branch, bzr_branch=None):
Mark a database branch as changed.
Parametersdb_branchThe branch to mark changed.
bzr_branch(optional) The bzr branch to use to mark the branch changed.
def branch_revision_history(branch):
Find the revision history of a branch.

This is a compatibility wrapper for code that still requires access to the full branch mainline and previously used Branch.revision_history(), which is now deprecated.

ParametersbranchBranch object
ReturnsRevision ids on the main branch
def get_ancestry(repository, revision_id):
Return a list of revision-ids integrated by a revision.

The first element of the list is always None, indicating the origin revision. This might change when we have history horizons, or perhaps we should have a new API.

This is topologically sorted.

API Documentation for Launchpad, generated by pydoctor at 2018-02-22 00:00:13.