Skip to content

Commit 5e54b01

Browse files
committed
bugzilla-close-candidate.py: Fix sorting of branches.
Pushed to master. maintainer-scripts/ChangeLog: * bugzilla-close-candidate.py: Fix sorting of branches.
1 parent bd4291a commit 5e54b01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

maintainer-scripts/bugzilla-close-candidate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ def search():
9191
if skip:
9292
continue
9393

94-
branches = get_branches_by_comments(comments)
95-
if len(branches):
96-
branches_str = ','.join(sorted(list(branches)))
94+
branches = sorted(list(get_branches_by_comments(comments)),
95+
key=lambda b: 999 if b is 'master' else int(b))
96+
if branches:
97+
branches_str = ','.join(branches)
9798
print('%-30s%-30s%-40s%-40s%-60s' % ('https://gcc.gnu.org/PR%d' % id, branches_str, fail, work, b['summary']), flush=True)
9899
ids.append(id)
99100

0 commit comments

Comments
 (0)