* [PATCH] bugzilla-close-candidate.py: Fix sorting of branches.
@ 2020-05-29 14:38 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2020-05-29 14:38 UTC (permalink / raw)
To: gcc-patches
Pushed to master.
maintainer-scripts/ChangeLog:
* bugzilla-close-candidate.py: Fix sorting of branches.
---
maintainer-scripts/bugzilla-close-candidate.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/maintainer-scripts/bugzilla-close-candidate.py b/maintainer-scripts/bugzilla-close-candidate.py
index 9c95f2bf3eb..cdace9763e7 100755
--- a/maintainer-scripts/bugzilla-close-candidate.py
+++ b/maintainer-scripts/bugzilla-close-candidate.py
@@ -91,9 +91,10 @@ def search():
if skip:
continue
- branches = get_branches_by_comments(comments)
- if len(branches):
- branches_str = ','.join(sorted(list(branches)))
+ branches = sorted(list(get_branches_by_comments(comments)),
+ key=lambda b: 999 if b is 'master' else int(b))
+ if branches:
+ branches_str = ','.join(branches)
print('%-30s%-30s%-40s%-40s%-60s' % ('https://gcc.gnu.org/PR%d' % id, branches_str, fail, work, b['summary']), flush=True)
ids.append(id)
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-29 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 14:38 [PATCH] bugzilla-close-candidate.py: Fix sorting of branches Martin Liška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).