Merge lp:~gz/hydrazine/trivial_nameerror_find_status_877413 into lp:hydrazine

Proposed by Martin Packman
Status: Merged
Approved by: Martin Packman
Approved revision: 100
Merged at revision: 100
Proposed branch: lp:~gz/hydrazine/trivial_nameerror_find_status_877413
Merge into: lp:hydrazine
Diff against target: 15 lines (+2/-3)
1 file modified
feed-pqm (+2/-3)
To merge this branch: bzr merge lp:~gz/hydrazine/trivial_nameerror_find_status_877413
Reviewer Review Type Date Requested Status
Jonathan Riddell Approve
Review via email: mp+79690@code.launchpad.net

Description of the change

Correct a mistake from the fix for bug 703057, which factored filtering of merge proposals into a separate function. There was however, a use of the `find_status` at the bottom of the main loop that I missed:

<https://code.launchpad.net/~gz/hydrazine/hide_unmerged_prerequisites_703057/+merge/78736>

While here, I also removed the if-clause as it's always true as there are no break statements for the outer `while len(all_mps):` loop and it's therefore a confusing way of spelling `if True:`.

To post a comment you must log in.
Revision history for this message
Jonathan Riddell (jr) wrote :

This seems to result in it repeating the same merge proposal indefinately

review: Needs Fixing
Revision history for this message
Martin Packman (gz) wrote :

That's what it was doing before I believe, if you mean what's described in bug 599459 - this change shouldn't take effect till there are no merge proposals left at all.

Revision history for this message
Jonathan Riddell (jr) wrote :

OK, approved

review: Approve
Revision history for this message
Martin Packman (gz) wrote :

If you have any cunning ideas for better behaviour in the case where there are merge proposals left over, I'd be happy to tackle that bug too.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'feed-pqm'
2--- feed-pqm 2011-10-12 22:49:12 +0000
3+++ feed-pqm 2011-10-18 13:51:55 +0000
4@@ -249,9 +249,8 @@
5 continue
6 else:
7 print "Sorry, don't understand %r" % whatnow
8- if not len(all_mps):
9- print "No remaining merge proposals matching status %r?" % find_status
10- return 0
11+ print "No remaining merge proposals ready to be merged."
12+ return 0
13
14 if __name__ == '__main__':
15 sys.exit(main(sys.argv))

Subscribers

People subscribed via source and target branches

to all changes: