/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

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
 
55
55
class cmd_register_branch(Command):
56
 
    """Register a branch with launchpad.net.
 
56
    __doc__ = """Register a branch with launchpad.net.
57
57
 
58
58
    This command lists a bzr branch in the directory of branches on
59
59
    launchpad.net.  Registration allows the branch to be associated with
161
161
 
162
162
 
163
163
class cmd_launchpad_open(Command):
164
 
    """Open a Launchpad branch page in your web browser."""
 
164
    __doc__ = """Open a Launchpad branch page in your web browser."""
165
165
 
166
166
    aliases = ['lp-open']
167
167
    takes_options = [
211
211
 
212
212
 
213
213
class cmd_launchpad_login(Command):
214
 
    """Show or set the Launchpad user ID.
 
214
    __doc__ = """Show or set the Launchpad user ID.
215
215
 
216
216
    When communicating with Launchpad, some commands need to know your
217
217
    Launchpad user ID.  This command can be used to set or show the
267
267
 
268
268
# XXX: cmd_launchpad_mirror is untested
269
269
class cmd_launchpad_mirror(Command):
270
 
    """Ask Launchpad to mirror a branch now."""
 
270
    __doc__ = """Ask Launchpad to mirror a branch now."""
271
271
 
272
272
    aliases = ['lp-mirror']
273
273
    takes_args = ['location?']
286
286
 
287
287
 
288
288
class cmd_lp_propose_merge(Command):
289
 
    """Propose merging a branch on Launchpad.
 
289
    __doc__ = """Propose merging a branch on Launchpad.
290
290
 
291
291
    This will open your usual editor to provide the initial comment.  When it
292
292
    has created the proposal, it will open it in your default web browser.
310
310
                            help='Propose the merge on staging.'),
311
311
                     Option('message', short_name='m', type=unicode,
312
312
                            help='Commit message.'),
 
313
                     Option('approve',
 
314
                            help='Mark the proposal as approved immediately.'),
313
315
                     ListOption('review', short_name='R', type=unicode,
314
316
                            help='Requested reviewer and optional type.')]
315
317
 
318
320
    aliases = ['lp-submit', 'lp-propose']
319
321
 
320
322
    def run(self, submit_branch=None, review=None, staging=False,
321
 
            message=None):
 
323
            message=None, approve=False):
322
324
        from bzrlib.plugins.launchpad import lp_propose
323
325
        tree, branch, relpath = bzrdir.BzrDir.open_containing_tree_or_branch(
324
326
            '.')
338
340
        else:
339
341
            target = _mod_branch.Branch.open(submit_branch)
340
342
        proposer = lp_propose.Proposer(tree, branch, target, message,
341
 
                                       reviews, staging)
 
343
                                       reviews, staging, approve=approve)
342
344
        proposer.check_proposal()
343
345
        proposer.create_proposal()
344
346