public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7844] gcc-changelog: Make This reverts stricter. Date: Mon, 28 Mar 2022 10:30:58 +0000 (GMT) [thread overview] Message-ID: <20220328103058.330253865C1C@sourceware.org> (raw) https://gcc.gnu.org/g:c8464cf444e8f41f6c10cb75cfa899c838f8d506 commit r12-7844-gc8464cf444e8f41f6c10cb75cfa899c838f8d506 Author: Martin Liska <mliska@suse.cz> Date: Mon Mar 28 12:29:29 2022 +0200 gcc-changelog: Make This reverts stricter. contrib/ChangeLog: * gcc-changelog/git_commit.py: Make the parsing stricter. Diff: --- contrib/gcc-changelog/git_commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 95dc49e5d48..7e29934b4ad 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -165,7 +165,7 @@ star_prefix_regex = re.compile(r'\t\*(?P<spaces>\ *)(?P<content>.*)') end_of_location_regex = re.compile(r'[\[<(:]') item_empty_regex = re.compile(r'\t(\* \S+ )?\(\S+\):\s*$') item_parenthesis_regex = re.compile(r'\t(\*|\(\S+\):)') -revert_regex = re.compile(r'This reverts commit (?P<hash>\w+).$') +revert_regex = re.compile(r'This reverts commit (?P<hash>[0-9a-f]+).$') cherry_pick_regex = re.compile(r'cherry picked from commit (?P<hash>\w+)') LINE_LIMIT = 100 @@ -317,7 +317,7 @@ class GitCommit: # Identify first if the commit is a Revert commit for line in self.info.lines: - m = revert_regex.match(line) + m = revert_regex.fullmatch(line) if m: self.revert_commit = m.group('hash') break
reply other threads:[~2022-03-28 10:30 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220328103058.330253865C1C@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).