~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-14 01:19:27 UTC
  • mfrom: (3251.1.3 child_submit)
  • Revision ID: pqm@pqm.ubuntu.com-20080314011927-hi5bdap69742g7zn
(Jelmer) Support child_submit_to option in submit-branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4040
4040
    generic options are "default", "editor", "mapi", and "xdg-email".
4041
4041
 
4042
4042
    If mail is being sent, a to address is required.  This can be supplied
4043
 
    either on the commandline, or by setting the submit_to configuration
4044
 
    option.
 
4043
    either on the commandline, by setting the submit_to configuration
 
4044
    option in the branch itself or the child_submit_to configuration option 
 
4045
    in the submit branch.
4045
4046
 
4046
4047
    Two formats are currently supported: "4" uses revision bundle format 4 and
4047
4048
    merge directive format 2.  It is significantly faster and smaller than
4126
4127
            if remembered_submit_branch:
4127
4128
                note('Using saved location: %s', submit_branch)
4128
4129
 
 
4130
            if mail_to is None:
 
4131
                submit_config = Branch.open(submit_branch).get_config()
 
4132
                mail_to = submit_config.get_user_option("child_submit_to")
 
4133
 
4129
4134
            stored_public_branch = branch.get_public_branch()
4130
4135
            if public_branch is None:
4131
4136
                public_branch = stored_public_branch