d554f43c98
This patch checks that a '[PRnnnn]' and '(PRnnnn)' also appears as PR in the changelog part of the commit message. And it does likewise for 'PR comp/nnnn' except that then also the component name is checked. (Note that the reverse is permitted, i.e. PR(s) only appearing in the changelog.) To avoid false positives, PR numbers in the subject line are ignored, if 'revert' appears. Additionally, reject commits with a nonempty second line. contrib/ChangeLog: * gcc-changelog/git_commit.py (pr_regex): Add ?P<pr> for group('pr'). (subject_pr_regex, subject_pr2_regex): New. (GitInfo.__init__, GitCommit.parse_changelog): Check subject PRs. * gcc-changelog/git_email.py (SUBJECT_PREFIX, subject_patch_regex): New. (GitEmail.__init__): Parse 'Subject:' and pass it to GitInfo. * gcc-changelog/test_email.py (test_pr_only_in_subject, test_wrong_pr_comp_in_subject, test_copyright_years): New. * gcc-changelog/test_patches.txt (0030-PR-c-92746, pr-check1.patch): Update to avoid triggering the new check. (0001-rs6000-Support-doubleword, pr-wrong-comp.patch, copyright-years.patch): New. |
||
---|---|---|
.. | ||
gcc-changelog | ||
header-tools | ||
legacy | ||
reghunt | ||
regression | ||
testsuite-management | ||
unicode | ||
vim-gcc-dev | ||
analyze_brprob_spec.py | ||
analyze_brprob.py | ||
bench-stringop | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
check_GNU_style_lib.py | ||
check_GNU_style.py | ||
check_GNU_style.sh | ||
check_makefile_deps.sh | ||
check_warning_flags.sh | ||
check-internal-format-escaping.py | ||
check-params-in-docs.py | ||
clang-format | ||
compare_tests | ||
compare_two_ftime_report_sets | ||
compare-all-tests | ||
compare-debug | ||
compare-lto | ||
compareSumTests3 | ||
config-list.mk | ||
dg-cmp-results.sh | ||
dg-extract-results.py | ||
dg-extract-results.sh | ||
dglib.pm | ||
download_prerequisites | ||
filter_gcc_for_doxygen | ||
filter_knr2ansi.pl | ||
filter_params.py | ||
filter-clang-warnings.py | ||
gcc_build | ||
gcc_update | ||
gcc-git-customization.sh | ||
gcc.doxy | ||
gen_autofdo_event.py | ||
gennews | ||
git-add-user-branch.sh | ||
git-add-vendor-branch.sh | ||
git-backport.py | ||
git-fetch-vendor.sh | ||
gthr_supp_vxw_5x.c | ||
index-prop | ||
jit-coverage-report.py | ||
maintainers-verify.sh | ||
make_sunver.pl | ||
make-obstacks-texi.pl | ||
mark_spam.py | ||
mklog.py | ||
paranoia.cc | ||
patch_tester.sh | ||
prepare_patch.sh | ||
prepare-commit-msg | ||
prerequisites.md5 | ||
prerequisites.sha512 | ||
repro_fail | ||
test_installed | ||
test_mklog.py | ||
test_recheck | ||
test_summary | ||
texi2pod.pl | ||
uninclude | ||
unused_functions.py | ||
update-copyright.py | ||
vimrc | ||
warn_summary |