b.s.b.SmartServerLockedBranchRequest(SmartServerBranchRequest) : class documentation

Part of bzrlib.smart.branch View In Hierarchy

Known subclasses: bzrlib.smart.branch.SmartServerBranchRequestSetConfigOption, bzrlib.smart.branch.SmartServerBranchRequestSetConfigOptionDict, bzrlib.smart.branch.SmartServerBranchRequestSetParentLocation, bzrlib.smart.branch.SmartServerBranchSetTagsBytes, bzrlib.smart.branch.SmartServerSetTipRequest

Base class for handling common branch request logic for requests that need a write lock.
Method do_with_branch Execute a request for a branch.

Inherited from SmartServerBranchRequest:

Method do Execute a request for a branch at path.

Inherited from SmartServerRequest (via 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_with_branch(self, branch, branch_token, repo_token, *args):
Execute a request for a branch.

A write lock will be acquired with the given tokens for the branch and repository locks. The lock will be released once the request is processed. The physical lock state won't be changed.

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.