Merge lp:~mbp/kanban/718564-edge into lp:kanban

Proposed by Martin Pool
Status: Merged
Approved by: Jamu Kakar
Approved revision: 23
Merged at revision: 22
Proposed branch: lp:~mbp/kanban/718564-edge
Merge into: lp:kanban
Diff against target: 44 lines (+6/-7)
2 files modified
kanban/commands.py (+4/-3)
kanban/launchpad.py (+2/-4)
To merge this branch: bzr merge lp:~mbp/kanban/718564-edge
Reviewer Review Type Date Requested Status
Jamu Kakar Approve
Review via email: mp+49910@code.launchpad.net

Description of the change

It turns out my previous branch didn't catch the other occurrence, and the way it did the first part was over-complicated. Take 2.

To post a comment you must log in.
Revision history for this message
Jamu Kakar (jkakar) wrote :

[1]

- get_person_assigned_bugs)
+ get_person_assigned_bugs,
+ SERVICE_ROOT)

Would you mind putting the new import on the same line as
get_person_assigned_bugs to match the existing formatting convention,
please?

[2]

 from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT

The existing EDGE_SERVICE_ROOT import is no longer used. Can you
please remove it?

When you merge, can you please write a merge commit message using the
following format. You can see examples of it in the log for trunk.

"""
Merged $branch-name [r=$reviewer] [f=$bug-number]

$changeset-description
"""

Thanks for cleaning this up, +1!

review: Approve
Revision history for this message
Martin Pool (mbp) wrote :

Thanks

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'kanban/commands.py'
2--- kanban/commands.py 2011-02-05 23:24:53 +0000
3+++ kanban/commands.py 2011-02-16 00:59:52 +0000
4@@ -3,12 +3,13 @@
5 from bzrlib.commands import Command
6 from bzrlib.option import Option
7
8-from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT
9+from launchpadlib.launchpad import Launchpad
10
11 from kanban.html import generate_html, generate_roadmap_html
12 from kanban.launchpad import (
13 get_config_path, get_cache_path, get_launchpad, get_milestone_bugs,
14- get_person_assigned_bugs)
15+ get_person_assigned_bugs,
16+ SERVICE_ROOT)
17 from kanban.milestone import Milestone, compare_bugs
18 from kanban.roadmap import load_roadmap
19
20@@ -29,7 +30,7 @@
21 raise RuntimeError(
22 "Credentials already exist at %s" % credentials_path)
23 launchpad = Launchpad.get_token_and_login(
24- "kanban", EDGE_SERVICE_ROOT, get_cache_path())
25+ "kanban", SERVICE_ROOT, get_cache_path())
26 launchpad.credentials.save(open(credentials_path, "w"))
27
28
29
30=== modified file 'kanban/launchpad.py'
31--- kanban/launchpad.py 2011-02-14 09:04:27 +0000
32+++ kanban/launchpad.py 2011-02-16 00:59:52 +0000
33@@ -13,10 +13,8 @@
34 from launchpadlib.credentials import Credentials
35 from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT
36
37-try:
38- from launchpadlib.launchpad import LPNET_SERVICE_ROOT
39-except ImportError:
40- LPNET_SERVICE_ROOT = EDGE_SERVICE_ROOT.replace(".edge", "")
41+from launchpadlib.uris import LPNET_SERVICE_ROOT
42+SERVICE_ROOT = LPNET_SERVICE_ROOT
43
44 from kanban.milestone import Bug
45

Subscribers

People subscribed via source and target branches

to all changes: