b.p.l.l.Proposer(object) : class documentation

Part of bzrlib.plugins.launchpad.lp_propose View In Hierarchy

No class docstring
Method __init__ Constructor.
Method get_comment Determine the initial comment for the merge proposal.
Method get_initial_body Get a body for the proposal for the user to modify.
Method check_proposal Check that the submission is sensible.
Method call_webservice Make a call to the webservice, wrapping failures.
Method create_proposal Perform the submission.
Method _get_prerequisite_branch Undocumented
def __init__(self, tree, source_branch, target_branch, message, reviews, staging=False, approve=False):
Constructor.
ParameterstreeThe working tree for the source branch.
source_branchThe branch to propose for merging.
target_branchThe branch to merge into.
messageThe commit message to use. (May be None.)
reviewsA list of tuples of reviewer, review type.
stagingIf True, propose the merge against staging instead of production.
approveIf True, mark the new proposal as approved immediately. This is useful when a project permits some things to be approved by the submitter (e.g. merges between release and deployment branches).
def get_comment(self, prerequisite_branch):
Determine the initial comment for the merge proposal.
def get_initial_body(self):
Get a body for the proposal for the user to modify.
Returnsa str or None.
def check_proposal(self):
Check that the submission is sensible.
def _get_prerequisite_branch(self):
Undocumented
def call_webservice(self, call, *args, **kwargs):
Make a call to the webservice, wrapping failures.

:param call: The call to make.
:param *args: *args for the call.
:param **kwargs: **kwargs for the call.
:return: The result of calling call(*args, *kwargs).
def create_proposal(self):
Perform the submission.
API Documentation for Bazaar, generated by pydoctor at 2014-10-31 00:01:21.