aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-11-30 13:41:26 +0100
committerMartin Liska <mliska@suse.cz>2020-11-30 13:42:25 +0100
commit1e5c644fb62e3e1757cf74fe8a14873d5e8ba53e (patch)
tree2b652a9da64852bf2e2698e331d5c166000cd78f /contrib/gcc-changelog/git_commit.py
parentd795a8ef4e02a96ab060b330d38ef923a198c7ce (diff)
downloadgcc-1e5c644fb62e3e1757cf74fe8a14873d5e8ba53e.zip
gcc-1e5c644fb62e3e1757cf74fe8a14873d5e8ba53e.tar.gz
gcc-1e5c644fb62e3e1757cf74fe8a14873d5e8ba53e.tar.bz2
changelog: allow subdir wildcard entry
contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow sub-directory wildcard changelog entry. Fix a typo caused by apostrophe escaping. * gcc-changelog/test_email.py: Test it. * gcc-changelog/test_patches.txt: Likewise.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 6487de3..57fba75 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -493,7 +493,7 @@ class GitCommit:
for entry in self.changelog_entries:
for pattern in entry.file_patterns:
name = os.path.join(entry.folder, pattern)
- if name not in wildcard_prefixes:
+ if not [name.startswith(pr) for pr in wildcard_prefixes]:
msg = 'unsupported wildcard prefix'
self.errors.append(Error(msg, name))
@@ -617,7 +617,7 @@ class GitCommit:
for pattern in mentioned_patterns:
if pattern not in used_patterns:
- error = 'pattern doesn''t match any changed files'
+ error = "pattern doesn't match any changed files"
self.errors.append(Error(error, pattern))
def check_for_correct_changelog(self):