b.s.b.SmartServerBranchRequestSetLastRevisionEx(SmartServerSetTipRequest) : class documentation

Part of bzrlib.smart.branch View In Hierarchy

No class docstring
Method do_tip_change_with_locked_branch Set the last revision of the branch.

Inherited from SmartServerSetTipRequest:

Method do_with_locked_branch Undocumented

Inherited from SmartServerLockedBranchRequest (via SmartServerSetTipRequest):

Method do_with_branch Execute a request for a branch.

Inherited from SmartServerBranchRequest (via SmartServerSetTipRequest, SmartServerLockedBranchRequest):

Method do Execute a request for a branch at path.

Inherited from SmartServerRequest (via SmartServerSetTipRequest, SmartServerLockedBranchRequest, SmartServerBranchRequest):

Method __init__ Constructor.
Method execute Public entry point to execute this request.
Method do_body Called if the client sends a body with the request.
Method do_chunk Called with each body chunk if the request has a streamed body.
Method do_end Called when the end of the request has been received.
Method setup_jail Undocumented
Method teardown_jail Undocumented
Method translate_client_path Translate a path received from a network client into a local
Method transport_from_client_path Get a backing transport corresponding to the location referred to by
Method _check_enabled Raises DisabledMethod if this method is disabled.
def do_tip_change_with_locked_branch(self, branch, new_last_revision_id, allow_divergence, allow_overwrite_descendant):
Set the last revision of the branch.

New in 1.6.

Parametersnew_last_revision_idthe revision ID to set as the last revision of the branch.
allow_divergenceA flag. If non-zero, change the revision ID even if the new_last_revision_id's ancestry has diverged from the current last revision. If zero, a 'Diverged' error will be returned if new_last_revision_id is not a descendant of the current last revision.
allow_overwrite_descendantA flag. If zero and new_last_revision_id is not a descendant of the current last revision, then the last revision will not be changed. If non-zero and there is no divergence, then the last revision is always changed.
Returnson success, a tuple of ('ok', revno, revision_id), where revno and revision_id are the new values of the current last revision info. The revision_id might be different to the new_last_revision_id if allow_overwrite_descendant was not set.
API Documentation for Bazaar, generated by pydoctor at 2020-07-04 00:47:39.