b.r.RevisionSpec_dwim(RevisionSpec) : class documentation

Part of bzrlib.revisionspec View In Hierarchy

Provides a DWIMish revision specifier lookup.

Note that this does not go in the revspec_registry because by definition there is no prefix to identify it. It's solely called from RevisionSpec.from_string() because the DWIMification happen when _match_on is called so the string describing the revision is kept here until needed.

Class Method append_possible_revspec Append a possible DWIM revspec.
Class Method append_possible_lazy_revspec Append a possible lazily loaded DWIM revspec.
Method _try_spectype Undocumented
Method _match_on Run the lookup and see what we can get.

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 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_and_check Undocumented
Method _as_revision_id Implementation of as_revision_id()
Method _as_tree Implementation of as_tree().
def _try_spectype(self, rstype, branch):
Undocumented
def _match_on(self, branch, revs):
Run the lookup and see what we can get.
@classmethod
def append_possible_revspec(cls, revspec):
Append a possible DWIM revspec.
ParametersrevspecRevision spec to try.
@classmethod
def append_possible_lazy_revspec(cls, module_name, member_name):
Append a possible lazily loaded DWIM revspec.
Parametersmodule_nameName of the module with the revspec
member_nameName of the revspec within the module
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.