diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-29 16:37:48 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-29 16:37:48 +0200 |
commit | 5e54b01f2b5cc7fd7c3523563e2db751e0706ff6 (patch) | |
tree | 487227f87532a25c02e4557d6434e4cc6e69d6c1 /maintainer-scripts | |
parent | bd4291a1c442a0759b8f267751522269da2decfe (diff) | |
download | gcc-5e54b01f2b5cc7fd7c3523563e2db751e0706ff6.tar.gz |
bugzilla-close-candidate.py: Fix sorting of branches.
Pushed to master.
maintainer-scripts/ChangeLog:
* bugzilla-close-candidate.py: Fix sorting of branches.
Diffstat (limited to 'maintainer-scripts')
-rwxr-xr-x | maintainer-scripts/bugzilla-close-candidate.py | 7 |
1 files 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) |