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
=== modified file 'debian/changelog'
--- debian/changelog 2011-08-18 15:41:41 +0000
+++ debian/changelog 2011-08-18 15:41:41 +0000
@@ -165,6 +165,7 @@
165 one to use.165 one to use.
166 * lp-project-upload: Close bugs on the milestone that are currently166 * lp-project-upload: Close bugs on the milestone that are currently
167 set to "Fix Committed"167 set to "Fix Committed"
168 * lp-project-upload: Ensure the milestone isn't still active
168169
169 -- Benjamin Drung <bdrung@debian.org> Tue, 19 Apr 2011 08:49:06 +0200170 -- Benjamin Drung <bdrung@debian.org> Tue, 19 Apr 2011 08:49:06 +0200
170171
171172
=== modified file 'lp-project-upload'
--- lp-project-upload 2011-08-18 15:41:41 +0000
+++ lp-project-upload 2011-08-18 15:41:41 +0000
@@ -178,6 +178,12 @@
178 else:178 else:
179 mark_released(task)179 mark_released(task)
180180
181 # Deactivate the milestone to clean it up
182 if release.milestone.is_active:
183 local_milestone = launchpad.load(release.milestone_link)
184 local_milestone.is_active = False
185 local_milestone.lp_save()
186
181 # Create a new milestone if requested187 # Create a new milestone if requested
182 if new_milestone is not None:188 if new_milestone is not None:
183 mil = release.milestone189 mil = release.milestone

Subscribers

People subscribed via source and target branches

to status/vote changes: