aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog
AgeCommit message (Collapse)AuthorFilesLines
2025-07-28git_commit.py: add "diagnostics" to bug componentsDavid Malcolm1-0/+1
contrib/ChangeLog * gcc-changelog/git_commit.py: Add "diagnostics" to bug components.
2025-07-23contrib: add 'zlib' to ignored_prefixesSam James1-0/+1
This fixes the same problem for syncing zlib that H.J. hit for libffi in r12-4561-g25ab851dd333d7. contrib/ChangeLog: PR other/105404 * gcc-changelog/git_commit.py (ignored_prefixes): Add zlib/.
2025-07-11Stop updating gcc-12 branchRichard Biener1-1/+1
contrib/ * gcc-changelog/git_update_version.py: Stop updating gcc-12 branch.
2025-04-17Update crontab and git_update_version.pyJakub Jelinek1-2/+2
2025-04-17 Jakub Jelinek <jakub@redhat.com> maintainer-scripts/ * crontab: Snapshots from trunk are now GCC 16 related. Add GCC 15 snapshots from the respective branch. contrib/ * gcc-changelog/git_update_version.py (active_refs): Add releases/gcc-15.
2025-03-15contrib/gcc-changelog: Fix Git.AutoInterrupt - sys.meta_path is None exceptionTobias Burnus1-0/+1
I think the following message is new with Python 3.13, at least I starting seeing the following exception, which could be fixed by a simple call to 'repo.close()'. Seemingly the issue was that the lifetime of the destructor exceeded the object lifetime. Exception ignored in: <function Git.AutoInterrupt.__del__ at 0x7ff995aa4f40> Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/git/cmd.py", line 790, in __del__ File "/usr/lib/python3.13/site-packages/git/cmd.py", line 781, in _terminate File "/usr/lib64/python3.13/subprocess.py", line 2227, in terminate ImportError: sys.meta_path is None, Python is likely shutting down contrib/ChangeLog: * gcc-changelog/git_repository.py (parse_git_revisions): Destroy the Repo object by calling repo.close() at the end of the function.
2025-03-11contrib: Add cobol to bug_components.Jakub Jelinek1-0/+1
Without this we can't commit anything refering to cobol/NNNNNN PRs. 2025-03-11 Jakub Jelinek <jakub@redhat.com> * gcc-changelog/git_commit.py (bug_components): Add cobol.
2025-03-10Add ChangeLog locations for gcc/cobol and libgcobolJakub Jelinek1-0/+2
* gcc-changelog/git_commit.py (default_changelog_locations): Add gcc/cobol and libgcobol entries.
2025-01-02Update copyright years.Jakub Jelinek6-6/+6
2024-12-10contrib: add 'libgdiagnostics' and 'sarif-replay' to bug_componentsDavid Malcolm1-0/+2
contrib/ChangeLog: * gcc-changelog/git_commit.py (bug_components): Add 'libgdiagnostics' and 'sarif-replay'. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2024-11-14contrib: Add another ignored commitJeff Law1-0/+1
* gcc-changelog/git_update_version.py (ignored_commits): Add another ignored commit.
2024-11-14contrib: Add 2 further ignored commitsJeff Law1-0/+2
I goof'd and double-reverted a change. Add those to the ignore list, leaving the final reversion as-is. * gcc-changelog/git_update_version.py (ignored_commits): Add 2 further commits.
2024-11-09contrib: Add 2 further ignored commitsJakub Jelinek1-1/+3
r15-4998 and r15-5004 had wrong commit message, add those to ignored commits. ChangeLog will need to be added manually. 2024-11-09 Jakub Jelinek <jakub@redhat.com> * gcc-changelog/git_update_version.py (ignored_commits): Add 2 further commits.
2024-07-19Close GCC 11 branchRichard Biener1-1/+1
Remove gcc-11 branch from updating and snapshot generating contrib/ * gcc-changelog/git_update_version.py: Remove gcc-11 branch. maintainer-scripts/ * crontab: Remove entry for gcc-11 branch.
2024-05-21contrib/gcc-changelog/git_update_version.py: Improve diagnosticTobias Burnus1-4/+11
contrib/ChangeLog: * gcc-changelog/git_update_version.py: Add '-i'/'--ignore' argument to add to-be-ignored commits via the command line. (ignored_commits): Rename from IGNORED_COMMITS and change type from tuple to set. (prepend_to_changelog_files): Show git hash if errors occurred. (update_current_branch): Mark argument as optional by defaulting to None.
2024-05-09contrib: Add 109f1b28fc94c93096506e3df0c25e331cef19d0 to ignored commitsJakub Jelinek1-1/+2
2024-05-09 Jakub Jelinek <jakub@redhat.com> * gcc-changelog/git_update_version.py: Replace 9dbff9c05520a74e6cd337578f27b56c941f64f3 with 39f81924d88e3cc197fc3df74204c9b5e01e12f7 and 109f1b28fc94c93096506e3df0c25e331cef19d0 in IGNORED_COMMITS.
2024-05-09contrib: Add 9dbff9c05520a74e6cd337578f27b56c941f64f3 to ignored commitsJakub Jelinek1-1/+2
2024-05-09 Jakub Jelinek <jakub@redhat.com> * gcc-changelog/git_update_version.py: Add 9dbff9c05520a74e6cd337578f27b56c941f64f3 to IGNORED_COMMITS.
2024-05-06contrib/gcc-changelog/git_check_commit.py: Implement --num-commitsKen Matsui1-0/+15
This patch implements a --num-commits (-n) flag for shorthand for the range of hash~N..hash commits. contrib/ChangeLog: * gcc-changelog/git_check_commit.py: Implement --num-commits. Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org> Reviewed-by: Patrick Palka <ppalka@redhat.com> Reviewed-by: Jason Merrill <jason@redhat.com>
2024-04-26Update crontab and git_update_version.pyJakub Jelinek1-2/+2
2024-04-26 Jakub Jelinek <jakub@redhat.com> maintainer-scripts/ * crontab: Snapshots from trunk are now GCC 15 related. Add GCC 14 snapshots from the respective branch. contrib/ * gcc-changelog/git_update_version.py (active_refs): Add releases/gcc-14.
2024-04-08contrib: Add 8057f9aa1f7e70490064de796d7a8d42d446caf8 to ignored commits.Jakub Jelinek1-1/+2
This commit unfortunately added explanation to the git revert generated message, breaking ChangeLog generation. 2024-04-08 Jakub Jelinek <jakub@redhat.com> * gcc-changelog/git_update_version.py: Add 8057f9aa1f7e70490064de796d7a8d42d446caf8 to IGNORED_COMMITS.
2024-02-29Add libcc1 to bug componentsAndrew Pinski1-0/+1
As found by Tom Tromey in https://gcc.gnu.org/pipermail/gcc-patches/2024-February/646807.html libcc1 is not listed as bug component even though it is there in bugzilla. This fixes that oversight. Committed as obvious after testing using git gcc-verify on a patch. contrib/ChangeLog: * gcc-changelog/git_commit.py (bug_components): Add libcc1. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
2024-01-05contrib: Remove C-style comments from Python filesJonathan Wakely6-6/+6
These Python scripts have "*/" at the end of the license header comment blocks, presumably copy&pasted from C files. contrib/ChangeLog: * analyze_brprob.py: Remove stray text at end of comment. * analyze_brprob_spec.py: Likewise. * check-params-in-docs.py: Likewise. * check_GNU_style.py: Likewise. * check_GNU_style_lib.py: Likewise. * filter-clang-warnings.py: Likewise. * gcc-changelog/git_check_commit.py: Likewise. * gcc-changelog/git_commit.py: Likewise. * gcc-changelog/git_email.py: Likewise. * gcc-changelog/git_repository.py: Likewise. * gcc-changelog/git_update_version.py: Likewise. * gcc-changelog/test_email.py: Likewise. * gen_autofdo_event.py: Likewise. * mark_spam.py: Likewise. * unicode/gen-box-drawing-chars.py: Likewise. * unicode/gen-combining-chars.py: Likewise. * unicode/gen-printable-chars.py: Likewise. * unicode/gen_wcwidth.py: Likewise.
2024-01-03Update copyright years.Jakub Jelinek6-6/+6
2023-12-14libgrust: Add entry for maintainersPierre-Emmanuel Patry1-0/+1
ChangeLog: * MAINTAINERS: Add maintainers for libgrust. contrib/ChangeLog: * gcc-changelog/git_commit.py: Add libgrust. Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com> Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
2023-11-14contrib: Ignore the r14-5312-g040e5b0edbca861196d9e2ea2af5e805769c8d5d bogus ↵Jakub Jelinek1-1/+2
commit The r14-5312-g040e5b0edbca861196d9e2ea2af5e805769c8d5d commit log contains a line from git revert with correct hash, but unfortunately hand ammended with explanation, so it got through the pre-commit hook but failed during update_version_git generation. Please don't do this. 2023-11-14 Jakub Jelinek <jakub@redhat.com> contrib/ChangeLog: * gcc-changelog/git_update_version.py: Add 040e5b0edbca861196d9e2ea2af5e805769c8d5d to ignored commits.
2023-09-07Revert "contrib/gcc-changelog: Check whether revert-commit exists"Tobias Burnus1-2/+2
This reverts commit ffffffffffffffffffffffffffffffffffffffff. This checks whether the pre-commit hook of the mentioned commit triggers and rejects this commit due to the bogus commit hash. This commit actually does not revert that patch but fixes that patch as 'technically' was accidently re-added in the second commit.
2023-09-07contrib/gcc-changelog: Check whether revert-commit existsTobias Burnus2-7/+16
This is the identical (except for a ChangeLog typo) to commit r14-3777-gff20bce9f5879878f352f1fcd6ade023a2067598 It reverts the test revert in commit r14-3778-gfbbd9001e9b6f2c59b542cc53a8f9183514091ce which has a bogus commit hash and should have been rejected, but we missed that - before testing - the script had to be manually copied to the right place on sourceware to be affective as pre-commit hook. Thus, the r14-3777 commit had to be reinstate by this commit ... contrib/ChangeLog: * gcc-changelog/git_commit.py (GitCommit.__init__): Handle commit_to_info_hook = None; otherwise, if None, regard it as error. (to_changelog_entries): Handle commit_to_info_hook = None; if info is None, create a warning for it. * gcc-changelog/git_email.py (GitEmail.__init__): call super() with commit_to_info_hook=None instead of a lambda function.
2023-09-07Revert "contrib/gcc-changelog: Check whether revert-commit exists"Tobias Burnus2-16/+7
This reverts commit ffffffffffffffffffffffffffffffffffffffff.
2023-09-07contrib/gcc-changelog: Check whether revert-commit existsTobias Burnus2-7/+16
contrib/ChangeLog: * gcc-changelog/git_commit.py (GitCommit.__init__): Handle commit_to_info_hook = None; otherwise, if None, regard it as error. (to_changelog_entries): Handle commit_to_info_hook = None; if info is None, create a warning for it. * gcc-changelog/git_email.py (GitEmail.__init__): call super() with commit_to_info_hook=None instead of a lamda function.
2023-07-07Closing the GCC 10 branchRichard Biener1-1/+1
contrib/ * gcc-changelog/git_update_version.py: Remove GCC 10 from active_refs. maintainer-scripts/ * crontab: Remove entry for GCC 10.
2023-04-17Update crontab and git_update_version.pyJakub Jelinek1-1/+1
2023-04-17 Jakub Jelinek <jakub@redhat.com> maintainer-scripts/ * crontab: Snapshots from trunk are now GCC 14 related. Add GCC 13 snapshots from the respective branch. contrib/ * gcc-changelog/git_update_version.py (active_refs): Add releases/gcc-13.
2023-01-17contrib: revert removal of CR characterMartin Liska1-2/+1
contrib/ChangeLog: * gcc-changelog/test_patches.txt: The CR character was removed with ./contrib/update-copyright.py which I'm going to change.
2023-01-16Update copyright years.Jakub Jelinek7-8/+9
2022-12-19gcc-changelog: support digits in PR's component in subjectMartin Liska1-1/+1
contrib/ChangeLog: * gcc-changelog/git_commit.py: Support digits in PR's component in subject.
2022-12-19gcc-changelog: allow digit in component nameMartin Liska3-1/+30
contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow digit in component name. contrib/ChangeLog: * gcc-changelog/test_email.py: Add new test. * gcc-changelog/test_patches.txt: Add new patch.
2022-12-19gcc-changelog: Add warning for auto-added filesTobias Burnus5-1/+135
git_email.py prints now a warning for files added automatically. git_check_commit.py does likewise but only with --verbose. It prints one line per ChangeLog file, either stating the file or if more than one the number of files. contrib/ChangeLog: * gcc-changelog/git_check_commit.py (__main__): With -v print a warning for the auto-added files. * gcc-changelog/git_commit.py (GitCommit.__init__): Add self.warnings. (GitCommit.check_mentioned_files): Add warning for auto-added files. (GitCommit.print_warnings): New function. * gcc-changelog/git_email.py (__main__): Remove bogus argument to GitEmail constructor; print auto-added-files warning. * gcc-changelog/test_email.py (test_auto_add_file_1, test_auto_add_file_2): New tests. * gcc-changelog/test_patches.txt: Add two test cases.
2022-12-19gcc-changelog: stop using --flake8Martin Liska1-1/+1
The flake8 pytest plug-in is broken and we should not use it. contrib/ChangeLog: * gcc-changelog/setup.cfg: Do not use flake8 pytest plug-in.
2022-12-16gcc-changelog: do not use PatchSet.from_filenameMartin Liska1-7/+4
Use rather PatchSet constructor where we can pass properly opened file with newline='\n'. contrib/ChangeLog: * gcc-changelog/git_email.py: Use PatchSet constructor as newline argument is not supported with older unidiff library.
2022-12-16gcc-changelog/git_email.py: Support older unidiff.PatchSetTobias Burnus1-1/+5
Commit "unidiff: use newline='\n' argument", r13-4603-gb045179973161115c7ea029b2788f5156fc55cda, added support CR on a line, but that broke support for older unidiff.PatchSet. This patch uses a fallback for git_email.py (drop argument) if not available (TypeError exception) but keeps using it in test_email.py unconditionally. contrib/ChangeLog: * gcc-changelog/git_email.py (GitEmail:__init__): Support older unidiff.PatchSet that do not have a newline= argument of from_filename.
2022-12-14contrib: add copyright for my scriptsMartin Liska6-0/+12
contrib/ChangeLog: * analyze_brprob.py: Add copyright header. * analyze_brprob_spec.py: Likewise. * check-params-in-docs.py: Likewise. * check_GNU_style.py: Likewise. * check_GNU_style_lib.py: Likewise. * filter-clang-warnings.py: Likewise. * gcc-changelog/git_check_commit.py: Likewise. * gcc-changelog/git_commit.py: Likewise. * gcc-changelog/git_email.py: Likewise. * gcc-changelog/git_repository.py: Likewise. * gcc-changelog/git_update_version.py: Likewise. * gcc-changelog/test_email.py: Likewise. * mark_spam.py: Likewise.
2022-12-11unidiff: use newline='\n' argumentMartin Liska4-7/+38
In order to support CR on a line, we need to open files with newline='\n' as our line endings supposed to be of UNIX style. contrib/ChangeLog: * check_GNU_style.py: Use newline=\n. * check_GNU_style_lib.py: Simplify. * gcc-changelog/git_commit.py: Fix issues seen Rust patchset. * gcc-changelog/git_email.py: Use newline argument. * gcc-changelog/test_email.py: New test. * gcc-changelog/test_patches.txt: New test. * mklog.py: Use newline argument.
2022-12-10Prepare 'contrib/gcc-changelog/git_commit.py' for GCC/RustThomas Schwinge1-0/+2
contrib/ * gcc-changelog/git_commit.py (default_changelog_locations): Add 'gcc/rust'. (bug_components): Add 'rust'.
2022-12-10Add ChangeLog directories for modula2 into git_commit.py.Gaius Mulley1-0/+2
Prepare to add changelogs for the Modula2 front end by changing the contrib git_commit.py script. contrib/ChangeLog: * gcc-changelog/git_commit.py (default_changelog_locations): New entry for gcc/m2. New entry for libgm2. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2022-11-25Revert "gcc-changelog: temporarily disable check_line_start"Martin Liska1-2/+0
This reverts commit a5878983d53db7513edb0e6bd99250dbb0c7d147.
2022-11-25gcc-changelog: temporarily disable check_line_startMartin Liska1-0/+2
contrib/ChangeLog: * gcc-changelog/git_commit.py: Temporarily disable check_line.start.
2022-11-21Revert "gcc-changelog: temporarily disable check_line_start"Martin Liska1-2/+0
This reverts commit 0275ff207027954d16e873ccdbd92f9881a14e72.
2022-11-20gcc-changelog: temporarily disable check_line_startMartin Liska1-0/+2
contrib/ChangeLog: * gcc-changelog/git_commit.py: Temporarily disable check_line.start.
2022-11-18Add another commit to ignoreJakub Jelinek1-1/+2
We can't handle r13-4128-g1957bedf29a1b2cc231972aba680fe80199d5498 * gcc-changelog/git_update_version.py: Add 1957bedf29a1b2cc231972aba680fe80199d5498 to ignored commits.
2022-11-15gcc-changelog: revert temporary rule relaxationMartin Liska1-2/+0
contrib/ChangeLog: * gcc-changelog/git_commit.py: Revert temporary rule relaxation.
2022-11-14gcc-changelog: temporarily disable check_line_startMartin Liska1-0/+2
contrib/ChangeLog: * gcc-changelog/git_commit.py: Temporarily disable check_line.start.
2022-11-11changelog: check for space after tabMartin Liska3-0/+51
contrib/ChangeLog: * gcc-changelog/git_commit.py: Check for a space after leading tab. * gcc-changelog/test_email.py: Likewise. * gcc-changelog/test_patches.txt: Likewise.