Merge lp:~ted/ubuntu-dev-tools/inactive-milestones into lp:~ubuntu-dev/ubuntu-dev-tools/trunk

Proposed by Ted Gould
Status: Rejected
Rejected by: Benjamin Drung
Proposed branch: lp:~ted/ubuntu-dev-tools/inactive-milestones
Merge into: lp:~ubuntu-dev/ubuntu-dev-tools/trunk
Prerequisite: lp:~ted/ubuntu-dev-tools/close-fix-committed-bugs
Diff against target: 28 lines (+7/-0)
2 files modified
debian/changelog (+1/-0)
lp-project-upload (+6/-0)
To merge this branch: bzr merge lp:~ted/ubuntu-dev-tools/inactive-milestones
Reviewer Review Type Date Requested Status
Benjamin Drung Disapprove
Stefano Rivera Needs Fixing
Review via email: mp+57982@code.launchpad.net

Description of the change

After using the milestone make sure to mark it as inactive. This matches the Launchpad webpage behavior.

Note: there is an odd line with the launchpad.load() function which is a work around for launchpad lib not creating the right object otherwise.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

there is a merge conflict there in the changelog

Revision history for this message
Stefano Rivera (stefanor) wrote :

I wouldn't worry too much about the conflicted changelog, but the fact that it depends on some Needs Fixing branches will cause merging delays.

milestone = release.milestone surely?

review: Needs Fixing
Revision history for this message
Ted Gould (ted) wrote :

On Mon, 2011-04-18 at 16:17 +0000, Stefano Rivera wrote:
> milestone = release.milestone surely?

One would think. That doesn't work though :-(

Revision history for this message
Stefano Rivera (stefanor) wrote :

I'm pretty sure that worked for me. A launchpadlib bugreport number in a comment above it would be nice.

1070. By Ted Gould

update to update to trunk

Revision history for this message
Benjamin Drung (bdrung) wrote :

lp-project-upload was moved to the lptools project. Please propose a merge into that project.

review: Disapprove

Unmerged revisions

1070. By Ted Gould

update to update to trunk

1069. By Ted Gould

Updating to latest close-bugs branch

1068. By Ted Gould

Work around a bug in launchpad lib by loading the milestone using load() instead of the auto-built object.

1067. By Ted Gould

lp-project-upload: Ensure the milestone isn't still active

1066. By Ted Gould

Ensure the milestone isn't still active

1065. By Ted Gould

lp-project-upload: Close bugs on the milestone that are currently
set to "Fix Committed"

1064. By Ted Gould

Whitespace

1063. By Ted Gould

Merge in milestone updates

1062. By Ted Gould

Find the 'fix committed' bugs and mark them released

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-08-18 15:41:41 +0000
3+++ debian/changelog 2011-08-18 15:41:41 +0000
4@@ -165,6 +165,7 @@
5 one to use.
6 * lp-project-upload: Close bugs on the milestone that are currently
7 set to "Fix Committed"
8+ * lp-project-upload: Ensure the milestone isn't still active
9
10 -- Benjamin Drung <bdrung@debian.org> Tue, 19 Apr 2011 08:49:06 +0200
11
12
13=== modified file 'lp-project-upload'
14--- lp-project-upload 2011-08-18 15:41:41 +0000
15+++ lp-project-upload 2011-08-18 15:41:41 +0000
16@@ -178,6 +178,12 @@
17 else:
18 mark_released(task)
19
20+ # Deactivate the milestone to clean it up
21+ if release.milestone.is_active:
22+ local_milestone = launchpad.load(release.milestone_link)
23+ local_milestone.is_active = False
24+ local_milestone.lp_save()
25+
26 # Create a new milestone if requested
27 if new_milestone is not None:
28 mil = release.milestone

Subscribers

People subscribed via source and target branches

to status/vote changes: