/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/__init__.py

  • Committer: Aaron Bentley
  • Date: 2009-06-29 14:51:13 UTC
  • mfrom: (4489 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4490.
  • Revision ID: aaron@aaronbentley.com-20090629145113-3w350dxgqppnzo4g
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    launchpad.net.  Registration allows the branch to be associated with
57
57
    bugs or specifications.
58
58
 
59
 
    Before using this command you must register the product to which the
 
59
    Before using this command you must register the project to which the
60
60
    branch belongs, and create an account for yourself on launchpad.net.
61
61
 
62
62
    arguments:
69
69
                    otherwise error.
70
70
 
71
71
    example:
72
 
        bzr register-branch http://foo.com/bzr/fooproduct.mine \\
73
 
                --product fooproduct
 
72
        bzr register-branch http://foo.com/bzr/fooproject.mine \\
 
73
                --project fooproject
74
74
    """
75
75
    takes_args = ['public_url?']
76
76
    takes_options = [
 
77
         Option('project',
 
78
                'Launchpad project short name to associate with the branch.',
 
79
                unicode),
77
80
         Option('product',
78
 
                'Launchpad product short name to associate with the branch.',
79
 
                unicode),
 
81
                'Launchpad product short name to associate with the branch.', 
 
82
                unicode,
 
83
                hidden=True),
80
84
         Option('branch-name',
81
85
                'Short name for the branch; '
82
86
                'by default taken from the last component of the url.',
100
104
 
101
105
    def run(self,
102
106
            public_url=None,
103
 
            product='',
 
107
            project='',
 
108
            product=None,
104
109
            branch_name='',
105
110
            branch_title='',
106
111
            branch_description='',
119
124
            public_url = b.get_public_branch()
120
125
            if public_url is None:
121
126
                raise NoPublicBranch(b)
 
127
        if product is not None:
 
128
            project = product
 
129
            trace.note('--product is deprecated; please use --project.')
 
130
 
122
131
 
123
132
        rego = BranchRegistrationRequest(branch_url=public_url,
124
133
                                         branch_name=branch_name,
125
134
                                         branch_title=branch_title,
126
135
                                         branch_description=branch_description,
127
 
                                         product_name=product,
 
136
                                         product_name=project,
128
137
                                         author_email=author,
129
138
                                         )
130
139
        linko = BranchBugLinkRequest(branch_url=public_url,