~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Martin Pool
  • Date: 2006-03-15 20:16:00 UTC
  • mto: (1668.1.8 bzr-0.8.mbp)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: mbp@sourcefrog.net-20060315201600-e5ab14d14424bbb3
Put the rest of the parameters into the registration request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
    def run(self, branch_url):
51
51
        from lp_registration import BranchRegistrationRequest
52
 
        BranchRegistrationRequest(branch_url)
 
52
        def _find_default_branch_id(branch_url):
 
53
            i = branch_url.rfind('/')
 
54
            return branch_url[i+1:]
 
55
        branch_id = _find_default_branch_id(branch_url)
 
56
        BranchRegistrationRequest(branch_url, branch_id)
53
57
 
54
58
register_command(cmd_register_branch)
55
59