public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7685] gcc-changelog: skip broken commit in git_update_version.py.
@ 2021-03-16 10:53 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-03-16 10:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5f6a43d691c8f8c7ef1289aacfcbb14b7004de81
commit r11-7685-g5f6a43d691c8f8c7ef1289aacfcbb14b7004de81
Author: Martin Liska <mliska@suse.cz>
Date: Tue Mar 16 09:35:32 2021 +0100
gcc-changelog: skip broken commit in git_update_version.py.
contrib/ChangeLog:
* gcc-changelog/git_update_version.py: Skip one problematic
commit.
Diff:
---
contrib/gcc-changelog/git_update_version.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py
index d2cadb8811c..1e2b22b008b 100755
--- a/contrib/gcc-changelog/git_update_version.py
+++ b/contrib/gcc-changelog/git_update_version.py
@@ -26,6 +26,9 @@ from git_repository import parse_git_revisions
current_timestamp = datetime.datetime.now().strftime('%Y%m%d\n')
+# Skip the following commits, they cannot be correctly processed
+IGNORED_COMMITS = ('c2be82058fb40f3ae891c68d185ff53e07f14f45')
+
def read_timestamp(path):
with open(path) as f:
@@ -98,6 +101,7 @@ def update_current_branch():
head = head.parents[1]
commits = parse_git_revisions(args.git_path, '%s..%s'
% (commit.hexsha, head.hexsha))
+ commits = [c for c in commits if c.info.hexsha not in IGNORED_COMMITS]
for git_commit in reversed(commits):
prepend_to_changelog_files(repo, args.git_path, git_commit,
not args.dry_mode)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-16 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 10:53 [gcc r11-7685] gcc-changelog: skip broken commit in git_update_version.py 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).