/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 brzlib/plugins/launchpad/cmds.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
class cmd_register_branch(Command):
43
43
    __doc__ = """Register a branch with launchpad.net.
44
44
 
45
 
    This command lists a bzr branch in the directory of branches on
 
45
    This command lists a brz branch in the directory of branches on
46
46
    launchpad.net.  Registration allows the branch to be associated with
47
47
    bugs or specifications.
48
48
 
53
53
        public_url: The publicly visible url for the branch to register.
54
54
                    This must be an http or https url (which Launchpad can read
55
55
                    from to access the branch). Local file urls, SFTP urls, and
56
 
                    bzr+ssh urls will not work.
57
 
                    If no public_url is provided, bzr will use the configured
 
56
                    brz+ssh urls will not work.
 
57
                    If no public_url is provided, brz will use the configured
58
58
                    public_url if there is one for the current branch, and
59
59
                    otherwise error.
60
60
 
61
61
    example:
62
 
        bzr register-branch http://foo.com/bzr/fooproject.mine \\
 
62
        brz register-branch http://foo.com/brz/fooproject.mine \\
63
63
                --project fooproject
64
64
    """
65
65
    takes_args = ['public_url?']
111
111
            except NotBranchError:
112
112
                raise BzrCommandError(gettext(
113
113
                            'register-branch requires a public '
114
 
                            'branch url - see bzr help register-branch.'))
 
114
                            'branch url - see brz help register-branch.'))
115
115
            public_url = b.get_public_branch()
116
116
            if public_url is None:
117
117
                raise NoPublicBranch(b)
191
191
        trace.note(gettext('Opening %s in web browser') % web_url)
192
192
        if not dry_run:
193
193
            import webbrowser   # this import should not be lazy
194
 
                                # otherwise bzr.exe lacks this module
 
194
                                # otherwise brz.exe lacks this module
195
195
            webbrowser.open(web_url)
196
196
 
197
197
 
205
205
    :Examples:
206
206
      Show the Launchpad ID of the current user::
207
207
 
208
 
          bzr launchpad-login
 
208
          brz launchpad-login
209
209
 
210
210
      Set the Launchpad ID of the current user to 'bob'::
211
211
 
212
 
          bzr launchpad-login bob
 
212
          brz launchpad-login bob
213
213
    """
214
214
    aliases = ['lp-login']
215
215
    takes_args = ['name?']
282
282
    The parameter the launchpad account name of the desired reviewer.  This
283
283
    may optionally be followed by '=' and the review type.  For example:
284
284
 
285
 
      bzr lp-propose-merge --review jrandom --review review-team=qa
 
285
      brz lp-propose-merge --review jrandom --review review-team=qa
286
286
 
287
287
    This will propose a merge,  request "jrandom" to perform a review of
288
288
    unspecified type, and request "review-team" to perform a "qa" review.
343
343
 
344
344
    So, to find the merge proposal that reviewed line 1 of README::
345
345
 
346
 
      bzr lp-find-proposal -r mainline:annotate:README:1
 
346
      brz lp-find-proposal -r mainline:annotate:README:1
347
347
    """
348
348
 
349
349
    takes_options = ['revision']