Merge lp:~stefanor/ibid/bug-close-tool into lp:~ibid-core/ibid/old-trunk-1.6

Proposed by Stefano Rivera
Status: Merged
Approved by: Stefano Rivera
Approved revision: 1012
Merged at revision: 1022
Proposed branch: lp:~stefanor/ibid/bug-close-tool
Merge into: lp:~ibid-core/ibid/old-trunk-1.6
Diff against target: 23 lines (+19/-0)
1 file modified
tools/release-close-bugs (+19/-0)
To merge this branch: bzr merge lp:~stefanor/ibid/bug-close-tool
Reviewer Review Type Date Requested Status
Max Rabkin Approve
Jonathan Hitchcock Approve
Review via email: mp+51024@code.launchpad.net

Commit message

Add tool for closing bugs at release

To post a comment you must log in.
Revision history for this message
Max Rabkin (max-rabkin) wrote :

This closes bugs which were targeted for one milestone but were actually merged into another. I'm not sure if this is something we should worry about, but what about using the changelist to get bug numbers?

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

Yeah, I manually eyeballed them all, but using CHANGES may be a better approach. That would be quite a bit more work, though

Revision history for this message
Max Rabkin (max-rabkin) :
review: Approve
Revision history for this message
Jonathan Hitchcock (vhata) :
review: Approve
Revision history for this message
Ibid Branch Auto-Lander (ibid-tarmac) wrote :

Attempt to merge into lp:ibid failed due to conflicts:

duplicate in tools.moved

Revision history for this message
Ibid Branch Auto-Lander (ibid-tarmac) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Max Rabkin (max-rabkin) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'tools/release-close-bugs'
2--- tools/release-close-bugs 1970-01-01 00:00:00 +0000
3+++ tools/release-close-bugs 2011-03-15 10:07:40 +0000
4@@ -0,0 +1,19 @@
5+#!/usr/bin/env python
6+# Copyright (c) 2011, Stefano Rivera
7+# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
8+
9+from launchpadlib.launchpad import Launchpad
10+
11+launchpad = Launchpad.login_with('ibid-close-bugs', 'production')
12+ibid = launchpad.projects['ibid']
13+last_release = list(ibid.releases)[-1]
14+
15+print "Closing 'Fix Committed' bugs for %s" % last_release.display_name
16+print "OK?"
17+input()
18+
19+milestone = last_release.milestone
20+for task in milestone.searchTasks(status='Fix Committed'):
21+ print task
22+ task.status = 'Fix Released'
23+ task.lp_save()

Subscribers

People subscribed via source and target branches