Merge lp:~jelmer/lptools/breezy into lp:lptools

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: 46
Proposed branch: lp:~jelmer/lptools/breezy
Merge into: lp:lptools
Diff against target: 75 lines (+8/-8)
3 files modified
bin/lp-milestones (+1/-1)
bin/lp-project (+3/-3)
lptools/command.py (+4/-4)
To merge this branch: bzr merge lp:~jelmer/lptools/breezy
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Guillermo Gonzalez Pending
Ubuntu One Control Tower Pending
Review via email: mp+353756@code.launchpad.net

Commit message

Use breezy for command infrastructure.

Description of the change

Use breezy for command infrastructure.

Unlike bzrlib, breezy is ported to Python 3.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/lp-milestones'
--- bin/lp-milestones 2010-03-11 10:08:53 +0000
+++ bin/lp-milestones 2018-08-26 16:54:18 +0000
@@ -25,7 +25,7 @@
25import time25import time
2626
27# Might want to make errors import lazy.27# Might want to make errors import lazy.
28from bzrlib import errors28from breezy import errors
29from launchpadlib.errors import HTTPError29from launchpadlib.errors import HTTPError
3030
31from lptools.command import *31from lptools.command import *
3232
=== modified file 'bin/lp-project'
--- bin/lp-project 2011-08-27 15:44:25 +0000
+++ bin/lp-project 2018-08-26 16:54:18 +0000
@@ -25,7 +25,7 @@
25import os25import os
2626
27# Might want to make errors import lazy.27# Might want to make errors import lazy.
28from bzrlib import bzrdir28from breezy import controldir
2929
30from lptools.command import *30from lptools.command import *
3131
@@ -55,7 +55,7 @@
55 def run(self, project):55 def run(self, project):
56 self.outf.write('creating project %s\n' % project)56 self.outf.write('creating project %s\n' % project)
57 # load the lp plugin - we needs it, but don't want its commands shown.57 # load the lp plugin - we needs it, but don't want its commands shown.
58 from bzrlib.plugins import launchpad58 from breezy.plugins import launchpad
59 project_d = {'project':project}59 project_d = {'project':project}
60 mgmt = self.launchpad.people.newTeam(60 mgmt = self.launchpad.people.newTeam(
61 display_name='%s committers' % project, name=project,61 display_name='%s committers' % project, name=project,
@@ -96,7 +96,7 @@
96 lp_host = os.environ.get('LAUNCHPAD_API', '')96 lp_host = os.environ.get('LAUNCHPAD_API', '')
97 if lp_host:97 if lp_host:
98 lp_host = '//%s/' % lp_host98 lp_host = '//%s/' % lp_host
99 branch = bzrdir.BzrDir.create_branch_convenience(99 branch = controldir.ControlDir.create_branch_convenience(
100 'lp:%s%s' % (lp_host, branch_path), force_new_tree=False)100 'lp:%s%s' % (lp_host, branch_path), force_new_tree=False)
101 series = proj.getSeries(name='trunk')101 series = proj.getSeries(name='trunk')
102 series.branch_link = self.launchpad.load(branch_path)102 series.branch_link = self.launchpad.load(branch_path)
103103
=== modified file 'lptools/command.py'
--- lptools/command.py 2010-03-11 10:19:10 +0000
+++ lptools/command.py 2018-08-26 16:54:18 +0000
@@ -38,7 +38,7 @@
38import os38import os
39import sys39import sys
4040
41from bzrlib import commands, ui, version_info as bzr_version_info41from breezy import commands, ui, version_info as bzr_version_info
4242
43from lptools import config43from lptools import config
4444
@@ -72,15 +72,15 @@
72class cmd_help(commands.Command):72class cmd_help(commands.Command):
73 """Show help on a command or other topic."""73 """Show help on a command or other topic."""
7474
75 # Can't use the stock bzrlib help, because the help indices aren't quite75 # Can't use the stock breezy help, because the help indices aren't quite
76 # generic enough.76 # generic enough.
77 takes_args = ['topic?']77 takes_args = ['topic?']
78 def run(self, topic=None):78 def run(self, topic=None):
79 if topic is None:79 if topic is None:
80 self.outf.write(sys.modules['__main__'].__doc__)80 self.outf.write(sys.modules['__main__'].__doc__)
81 else:81 else:
82 import bzrlib.help82 import breezy.help
83 bzrlib.help.help(topic)83 breezy.help.help(topic)
8484
8585
86def do_run_bzr(argv):86def do_run_bzr(argv):

Subscribers

People subscribed via source and target branches