gcc/contrib
Tobias Burnus d554f43c98 contrib/gcc-changelog: Check that PR in subject is in changelog
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.
2021-06-13 07:46:54 +02:00
..
gcc-changelog contrib/gcc-changelog: Check that PR in subject is in changelog 2021-06-13 07:46:54 +02:00
header-tools
legacy
reghunt
regression
testsuite-management
unicode libcpp: Update cpp_wcwidth() to Unicode 13.0.0 2020-11-07 09:36:43 -05:00
vim-gcc-dev
analyze_brprob_spec.py
analyze_brprob.py
bench-stringop
ChangeLog Daily bump. 2021-06-11 09:09:28 +00:00
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 Document missing params. 2020-12-04 09:38:04 +01:00
clang-format Autodetect C++ dialect in use for clang-format 2020-09-17 15:22:33 -06:00
compare_tests
compare_two_ftime_report_sets
compare-all-tests
compare-debug
compare-lto Fix LTO bootstrap on Windows 2021-01-28 11:33:53 +01:00
compareSumTests3
config-list.mk aix: Remove AIX 6.1 support. 2021-04-22 19:43:55 -04:00
dg-cmp-results.sh
dg-extract-results.py
dg-extract-results.sh
dglib.pm
download_prerequisites Update mpfr version to 3.1.6 2021-05-17 08:56:28 +02:00
filter_gcc_for_doxygen
filter_knr2ansi.pl
filter_params.py
filter-clang-warnings.py contrib: filter more in filter-clang-warnings.py 2020-12-08 11:21:26 +01:00
gcc_build
gcc_update Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
gcc-git-customization.sh git: Tell git send-email where to send patches. 2020-12-02 14:41:02 -05:00
gcc.doxy
gen_autofdo_event.py
gennews Update gennews for GCC 10 and GCC 11. 2021-04-27 11:02:27 +02:00
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 mklog: Put detected PR entries before ChangeLogs 2021-05-13 15:13:31 +02:00
paranoia.cc
patch_tester.sh
prepare_patch.sh
prepare-commit-msg
prerequisites.md5 Update mpfr version to 3.1.6 2021-05-17 08:56:28 +02:00
prerequisites.sha512 Update mpfr version to 3.1.6 2021-05-17 08:56:28 +02:00
repro_fail
test_installed
test_mklog.py mklog: Put detected PR entries before ChangeLogs 2021-05-13 15:13:31 +02:00
test_recheck
test_summary
texi2pod.pl substitute @tie{} with a space for the man pages 2021-03-19 10:03:02 +00:00
uninclude
unused_functions.py
update-copyright.py Update copyright years in c++tools 2021-05-25 11:12:03 +02:00
vimrc
warn_summary