b.r.RevisionSpec_revno(RevisionSpec) : class documentation

Part of bzrlib.revisionspec View In Hierarchy

Selects a revision using a number.
Method needs_branch Whether this revision spec needs a branch.
Method get_branch When the revision specifier contains a branch location, return it.
Method _match_on Lookup a revision by revision number
Method _lookup Undocumented
Method _as_revision_id Implementation of as_revision_id()

Inherited from RevisionSpec:

Static Method from_string Parse a revision spec string into a RevisionSpec object.
Method __init__ Create a RevisionSpec referring to the Null revision.
Method in_history Undocumented
Method as_revision_id Return just the revision_id for this revisions spec.
Method as_tree Return the tree object for this revisions spec.
Method __repr__ Undocumented
Method _match_on_and_check Undocumented
Method _as_tree Implementation of as_tree().
def _match_on(self, branch, revs):
Lookup a revision by revision number
def _lookup(self, branch, revs_or_none):
Undocumented
def _as_revision_id(self, context_branch):
Implementation of as_revision_id()

Classes should override this function to provide appropriate functionality. The default is to just call '.in_history().rev_id'

def needs_branch(self):
Whether this revision spec needs a branch.

Set this to False the branch argument of _match_on is not used.

def get_branch(self):
When the revision specifier contains a branch location, return it.

Otherwise, return None.

API Documentation for Bazaar, generated by pydoctor at 2019-09-16 00:30:59.