public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2840] mklog: support '-b c/101343' format.
@ 2021-08-10 15:53 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-08-10 15:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:84f906df4f0e99b94565f1ca72cf57f63420ad8a

commit r12-2840-g84f906df4f0e99b94565f1ca72cf57f63420ad8a
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Jul 12 12:07:19 2021 +0200

    mklog: support '-b c/101343' format.
    
    contrib/ChangeLog:
    
            * mklog.py: Support additional PRs without PR prefix.

Diff:
---
 contrib/mklog.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/mklog.py b/contrib/mklog.py
index ba70af0eef2..d2aea85c7cc 100755
--- a/contrib/mklog.py
+++ b/contrib/mklog.py
@@ -157,7 +157,11 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False,
     global firstpr
 
     if additional_prs:
-        prs = [pr for pr in additional_prs if pr not in prs]
+        for apr in additional_prs:
+            if not apr.startswith('PR ') and '/' in apr:
+                apr = 'PR ' + apr
+            if apr not in prs:
+                prs.append(apr)
     for file in diff:
         # skip files that can't be parsed
         if file.path == '/dev/null':


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-10 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 15:53 [gcc r12-2840] mklog: support '-b c/101343' format Martin Liska

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).