aboutsummaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2020-07-01Daily bump.GCC Administrator1-0/+5
2020-06-30gcc-changelog: support older GitPython releases.Martin Liska1-1/+5
contrib/ChangeLog: * gcc-changelog/git_repository.py: Support older releases of GitPython when renamed_file was named renamed.
2020-06-30Daily bump.GCC Administrator1-0/+13
2020-06-30gcc-changelog: support 'This revert commit' prefix.Martin Liska2-3/+21
contrib/ChangeLog: * gcc-changelog/git_check_commit.py: Print revision of original_info. * gcc-changelog/git_commit.py: Support Revert commits.
2020-06-30gcc-changelog: come up with GitInfo wrapper.Martin Liska4-52/+58
contrib/ChangeLog: * gcc-changelog/git_check_commit.py: Use GitInfo * gcc-changelog/git_commit.py: Add GitInfo class. * gcc-changelog/git_email.py: Use GitInfo class. * gcc-changelog/git_repository.py: Likewise.
2020-06-25Daily bump.GCC Administrator1-0/+5
2020-06-24Make contrib/download_prerequisites work on AIX and OpenBSDIlya Leoshkevich1-2/+16
contrib/ChangeLog: 2020-06-11 Ilya Leoshkevich <iii@linux.ibm.com> * download_prerequisites: Support AIX and OpenBSD unames. Pipe `{gzip,bzip2} -d` to `tar -xf -`.
2020-06-19Daily bump.GCC Administrator1-0/+16
2020-06-18gcc-changelog: checkout & pull orderMartin Liska1-1/+1
contrib/ChangeLog: * gcc-changelog/git_update_version.py: First checkout and then run git pull ---rebase.
2020-06-18gcc-changelog: support merge commits in git_update_versionMartin Liska1-3/+11
contrib/ChangeLog: * gcc-changelog/git_update_version.py: Support merge commits and walk only on the branch that is being merged and generate missing ChangeLog entries.
2020-06-18gcc-changelog: fix Backported from timestamp.Martin Liska1-1/+5
contrib/ChangeLog: * gcc-changelog/git_commit.py: Fix Backported from timestamp when use_commit_ts=True is used.
2020-06-18Daily bump.GCC Administrator1-0/+10
2020-06-17gcc-changelog: Support 'Backported from master'.Martin Liska5-10/+80
contrib/ChangeLog: * gcc-changelog/git_commit.py: Print 'Backported from master' heading to backported commits. * gcc-changelog/test_email.py: Test it. * gcc-changelog/test_patches.txt: Add new patch. * gcc-changelog/git_repository.py: Add commit_to_date hook. * gcc-changelog/git_email.py: Add fuzzy implementation of commit_to_date_hook.
2020-06-12Daily bump.GCC Administrator1-0/+21
2020-06-11contrib: Make prepare-commit-msg hook smarter for amendsJonathan Wakely1-0/+13
With this change the prepare-commit-msg hook can compare the log of a commit being amended with the staged changes, and not run mklog.py unnecessarily. This is controlled by a git config option, gcc-config.mklog-hook-type. contrib/ChangeLog: * prepare-commit-msg: Use the gcc-config.mklog-hook-type Git config key instead of the GCC_FORCE_MKLOG environment variable. Optionally disable generating a new ChangeLog template for amended commits when the existing log is still OK.
2020-06-11git_update_version: add --current argument.Martin Liska1-47/+59
The argument can be useful to update arbitrary branch, the changes are added to git index and user is supposed to make a commit. contrib/ChangeLog: * gcc-changelog/git_update_version.py: Add --curent argument.
2020-06-11prepare-commit-hook: Use gcc-config.diff-file.Martin Liska1-2/+3
contrib/ChangeLog: * prepare-commit-msg: Replace ENV variable with a git config value.
2020-06-11contrib: Avoid redundant 'git diff' in prepare-commit-msg hookJonathan Wakely1-2/+4
contrib/ChangeLog: * prepare-commit-msg: Use 'tee' to save the diff to a file instead of running 'git diff' twice.
2020-06-11Daily bump.GCC Administrator1-0/+19
2020-06-10gcc-changelog: fix parse_git_name_status for renames.Martin Liska2-1/+15
Renamed files are listed in the following format: M gcc/ada/Makefile.rtl M gcc/ada/impunit.adb R097 gcc/ada/libgnat/s-atopar.adb gcc/ada/libgnat/s-aoinar.adb R095 gcc/ada/libgnat/s-atopar.ads gcc/ada/libgnat/s-aoinar.ads A gcc/ada/libgnat/s-aomoar.adb A gcc/ada/libgnat/s-aomoar.ads So 'R' is followed by a percentage number. contrib/ChangeLog: * gcc-changelog/git_commit.py: Fix renamed files in parse_git_name_status. * gcc-changelog/test_email.py: Add test for it.
2020-06-10gcc-changelog: add more Review by prefixes.Martin Liska3-7/+10
contrib/ChangeLog: * gcc-changelog/git_commit.py: Add more supported prefixes. * gcc-changelog/test_email.py: Fix one flake8 error. * gcc-changelog/test_patches.txt: Add tested for newly supported prefixes.
2020-06-10gcc-changelog: Improve git_commit.py diagnosticsJonathan Wakely2-13/+13
This changes some error messages to be more self-consistent and to fix some grammar. contrib/ChangeLog: * gcc-changelog/git_commit.py (GitCommit.parse_changelog): Improve error strings. * gcc-changelog/test_email.py: Update expected errors.
2020-06-10Daily bump.GCC Administrator1-0/+11
2020-06-09gcc-changelog: Use non-zero exit status on errorJonathan Wakely1-0/+4
Also add comment explaining what the script does. contrib/ChangeLog: * gcc-changelog/git_email.py: Set exit status on error.
2020-06-09gcc-changelog: fix deduction for root ChangeLogMartin Liska3-2/+76
contrib/ChangeLog: * gcc-changelog/git_commit.py: Fix ChangeLog regex in order to match the top-level ChangeLog. * gcc-changelog/test_email.py: Add test. * gcc-changelog/test_patches.txt: Likewise.
2020-06-03Daily bump.GCC Administrator1-0/+32
2020-06-02gcc-changelog: support patternsMartin Liska3-8/+143
contrib/ChangeLog: * gcc-changelog/git_commit.py: Support foo/bar/*: patterns in wildcard_prefixes locations. * gcc-changelog/test_email.py: Test it. * gcc-changelog/test_patches.txt: Add 3 new patches.
2020-06-02contrib: Add gdc.test to list of ignored prefixesIain Buclaw1-0/+1
The files in this subdirectory are part of the D2 test suite maintained in the upstream DMD code repository. contrib/ChangeLog: * gcc-changelog/git_commit.py (ignored_prefixes): Add gcc/testsuite/gdc.test/.
2020-06-02gcc-changelog: Update test to match new error textJonathan Wakely1-1/+1
contrib/ChangeLog: * gcc-changelog/test_email.py (TestGccChangelog.test_long_lines): Update expected error message.
2020-06-02gcc-changelog: Improve error text for overlong ChangeLog linesJonathan Wakely1-1/+1
This error is wrong, the line is what exceeds LINE_LIMIT characters, the limit doesn't exceed itself. contrib/ChangeLog: * gcc-changelog/git_commit.py (GitCommit.parse_changelog): Fix grammar.
2020-06-02contrib: Make prepare-commit-msg hook safe for older branchesJonathan Wakely1-0/+3
If a user installs this script as .git/hooks/prepare-commit-msg and then works on an old branch which doesn't have the mklog.py script, trying to commit will fail with an error like: environment: /.../gcc/contrib/mklog.py: No such file or directory This makes it exit cleanly so it's possible to commit. contrib/ChangeLog: * prepare-commit-msg: Do nothing if the mklog.py script isn't present.
2020-06-02contrib: Improve comments and error textJonathan Wakely1-3/+3
* gcc-changelog/git_commit.py (GitCommit.check_mentioned_files): Improve error text.
2020-06-01Daily bump.GCC Administrator1-0/+21
2020-05-31contrib: Add v850e1-elf to config-list.mkIain Buclaw1-2/+1
This comment was added in SVN r173410, v850e1-* was added to config.sub in SVN r174691 (around 2011). So it should no longer apply. contrib/ChangeLog: * config-list.mk (LIST): Add v850e1-elf.
2020-05-31contrib: Add or1k-elf, or1k-linux-*, and or1k-rtems to config-list.mkIain Buclaw1-0/+1
Support for OpenRISC target was added in SVN r265963. contrib/ChangeLog: * config-list.mk (LIST): Add or1k-elf, or1k-linux-*, and or1k-rtems.
2020-05-31contrib: Remove arm-wrs-vxworks from config-list.mkIain Buclaw1-1/+1
Support for arm-wrs-vxworks was removed in git r10-4684. contrib/ChangeLog: * config-list.mk (LIST): Remove arm-wrs-vxworks.
2020-05-31contrib: Remove cris-linux and crisv32-* from config-list.mkIain Buclaw1-1/+1
Support for crisv32-*-* and cris-*-linux* was removed in git r11-214. contrib/ChangeLog: * config-list.mk (LIST): Remove cris-linux, crisv32-elf, and crisv32-linux.
2020-05-31contrib: Add pru-elf to config-list.mkIain Buclaw1-0/+1
Support for the TI PRU target was added in SVN r272202. contrib/ChangeLog: * config-list.mk (LIST): Add pru-elf.
2020-05-30Daily bump.GCC Administrator1-0/+24
2020-05-29contrib: Remove rs6000-ibm-aix5.3.0 from config-list.mkIain Buclaw1-1/+1
contrib/ChangeLog: * config-list.mk (LIST): Remove rs6000-ibm-aix5.3.0.
2020-05-29Error for missing change description in git_commit.py.Martin Liska3-0/+44
contrib/ChangeLog: * gcc-changelog/git_commit.py: Find empty change descriptions. * gcc-changelog/test_email.py: New test. * gcc-changelog/test_patches.txt: New patch that tests that.
2020-05-29Fix various limitations of git-backport.py.Martin Liska1-4/+9
I've just tested the script and I'm going to install the patch to all active branches. contrib/ChangeLog: * git-backport.py: The script did 'git co HEAD~' when there was no modified ChangeLog file in a successful git cherry pick. Run cherry-pick --continue without editor.
2020-05-29git_commit: fix duplicite email address.Martin Liska3-2/+66
The patch is about to handle situations like seen in 3ea6977d0f1813d982743a09660eec1760e981ec. contrib/ChangeLog: * gcc-changelog/git_commit.py: Properly handle duplicite authors. * gcc-changelog/test_email.py: New test. * gcc-changelog/test_patches.txt: New patch.
2020-05-29Daily bump.GCC Administrator1-0/+20
2020-05-28gcc-changelog: enhance handling of renamingsPierre-Marie de Rodat4-1/+178
So far, we expect from a commit that renames a file to contain a changelog entry only for the new name. For example, after the following commit: $ git move foo bar $ git commit We expect the following changelog: * bar: Renamed from foo. Git does not keep track of renamings, only file deletions and additions. The display of patches then uses heuristics (with config-dependent parameters) to try to match deleted and added files in the same commit. It is thus brittle to rely on this information. This commit modifies changelog processing so that renames are considered as a deletion of a file plus an addition of another file. The following changelog is now expected for the above example: * foo: Move... * bar: Here. contrib/ * gcc-changelog/git_email.py (GitEmail.__init__): Interpret file renamings as a file deletion plus a file addition. * gcc-changelog/git_repository.py (parse_git_revisions): Likewise. * gcc-changelog/test_email.py: New testcase. * gcc-changelog/test_patches.txt: New testcase.
2020-05-28Fix check-params-in-docs.py for --help=param.Martin Liska1-7/+10
contrib/ChangeLog: * check-params-in-docs.py: Update to new format of help. Apply flake8 corrections.
2020-05-28mklog: support renaming of filesMartin Liska2-0/+34
contrib/ChangeLog: * mklog.py: Support renaming of files. One needs unidiff 0.6.0+. * test_mklog.py: Test it.
2020-05-28Daily bump.GCC Administrator1-0/+16
2020-05-27Add new git-backport.py script.Martin Liska2-1/+61
contrib/ChangeLog: * gcc-git-customization.sh: Use git-backport.py to drop all changes for ChangeLog files. * git-backport.py: New file.
2020-05-27Rename commit-mklog alias to gcc-commit-mklog.Martin Liska1-3/+1
contrib/ChangeLog: * gcc-git-customization.sh: Rename commit-mklog to gcc-commit-mklog.