35
35
launchpad.net. Registration allows the bug to be associated with
36
36
bugs or specifications.
38
Before using this command you must register the project to which the
38
Before using this command you must register the product to which the
39
39
branch belongs, and create an account for yourself on launchpad.net.
47
bzr register-branch http://foo.com/bzr/fooproject.mine \
47
bzr register-branch http://foo.com/bzr/fooproduct.mine \\
50
50
takes_args = ['branch_url']
52
def run(self, branch_url):
53
from lp_registration import register_interactive
54
register_interactive(branch_url)
53
'launchpad product short name to associate with the branch',
56
'short name for the branch; '
57
'by default taken from the last component of the url',
59
Option('branch-title',
60
'one-sentence description of the branch',
62
Option('branch-description',
63
'longer description of the purpose or contents of the branch',
66
'prepare the request but don\'t actually send it')
75
branch_description='',
77
from lp_registration import BranchRegistrationRequest
79
raise NotImplementedError('--dry-run for register-branch')
80
rego = BranchRegistrationRequest(branch_url=branch_url,
81
branch_name=branch_name,
82
branch_title=branch_title,
83
branch_description=branch_description,
86
rego.register_interactive()
56
88
register_command(cmd_register_branch)