aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-03-16 09:35:32 +0100
committerMartin Liska <mliska@suse.cz>2021-03-16 11:50:50 +0100
commit5f6a43d691c8f8c7ef1289aacfcbb14b7004de81 (patch)
tree3658d2b71f399345bbf7aff15e35b52f1b0abec2
parent82085eb3d44833bd1557fdd932c4738d987f559d (diff)
downloadgcc-5f6a43d691c8f8c7ef1289aacfcbb14b7004de81.zip
gcc-5f6a43d691c8f8c7ef1289aacfcbb14b7004de81.tar.gz
gcc-5f6a43d691c8f8c7ef1289aacfcbb14b7004de81.tar.bz2
gcc-changelog: skip broken commit in git_update_version.py.
contrib/ChangeLog: * gcc-changelog/git_update_version.py: Skip one problematic commit.
-rwxr-xr-xcontrib/gcc-changelog/git_update_version.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py
index d2cadb8..1e2b22b 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)