Skip to content
Snippets Groups Projects
  1. Dec 21, 2020
  2. Nov 30, 2020
    • Martin Liska's avatar
      changelog: add hint for a file mismatch · 57cbb7ac
      Martin Liska authored
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py: Suggest close file for
      	'unchanged file mentioned in a ChangeLog' error.
      	* gcc-changelog/test_email.py: Test it.
      57cbb7ac
    • Martin Liska's avatar
      changelog: allow subdir wildcard entry · 1e5c644f
      Martin Liska authored
      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.
      1e5c644f
  3. Nov 27, 2020
    • Martin Liska's avatar
      changelog: allow flexible "cherry picked" format. · b8ae0812
      Martin Liska authored
      It handles the following:
      (cherry picked from commit c0c7270c (testsuite changes only))
      
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py: Use regex for cherry pick prefix.
      	* gcc-changelog/test_email.py: Test it.
      	* gcc-changelog/test_patches.txt: Likewise.
      b8ae0812
  4. Nov 06, 2020
  5. Nov 04, 2020
    • Tobias Burnus's avatar
      gcc-changelog/git_commit.py: Check for missing description · 619039de
      Tobias Burnus authored
      Especially when using mklog.py, it is simply to forget to fill in
      the entries after the '\t* file.c (section):' or '\t(section):'.
      
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py (item_parenthesis_empty_regex,
      	item_parenthesis_regex): Add.
      	(check_for_empty_description): Use them.
      	* gcc-changelog/test_email.py (test_emptry_entry_desc,
      	test_emptry_entry_desc_2): Add.
      	* gcc-changelog/test_patches.txt: Add two testcases for it.
      619039de
  6. Oct 30, 2020
  7. Jul 07, 2020
    • Alexandre Oliva's avatar
      accept <case> and [cond] in ChangeLog · a759bfc7
      Alexandre Oliva authored
      
      Only '(' and ':' currently terminate file lists in ChangeLog entries
      in the ChangeLog parser.  This rules out such legitimate entries as:
      
      * filename <CASE>:
      * filename [COND]:
      
      This patch extends the ChangeLog parser to recognize these forms.
      
      for  contrib/ChangeLog
      
      	* gcc-changelog/git_commit.py: Support CASE and COND.
      	* gcc-changelog/test_patches.txt: Add test.
      	* gcc-changelog/test_email.py: Add test.
      
      Co-Authored-By: default avatarMartin Liska <mliska@suse.cz>
      a759bfc7
  8. Jun 17, 2020
    • Martin Liska's avatar
      gcc-changelog: Support 'Backported from master'. · 2021af0c
      Martin Liska authored
      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.
      2021af0c
  9. Jun 10, 2020
    • Martin Liska's avatar
      gcc-changelog: fix parse_git_name_status for renames. · 50ff02b5
      Martin Liska authored
      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.
      50ff02b5
    • Martin Liska's avatar
      gcc-changelog: add more Review by prefixes. · 771e60dd
      Martin Liska authored
      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.
      771e60dd
    • Jonathan Wakely's avatar
      gcc-changelog: Improve git_commit.py diagnostics · 1ea9a0b7
      Jonathan Wakely authored
      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.
      1ea9a0b7
  10. Jun 09, 2020
    • Martin Liska's avatar
      gcc-changelog: fix deduction for root ChangeLog · 4373fd2c
      Martin Liska authored
      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.
      4373fd2c
  11. Jun 02, 2020
  12. May 29, 2020
  13. May 28, 2020
    • Pierre-Marie de Rodat's avatar
      gcc-changelog: enhance handling of renamings · a634157d
      Pierre-Marie de Rodat authored
      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.
      a634157d
  14. May 26, 2020
    • Pierre-Marie de Rodat's avatar
      gcc-changelog: handle entries with multi-line file lists · 519f2506
      Pierre-Marie de Rodat authored
      This extends the ChangeLog entries parsing machinery to handle entries
      that cover multiple files spanning over multiple lines. For instance:
      
          * first_file_patched.c, second_file_patched.c, third_file_patched.c,
          fourth_file_patched.c: Do things.
      
      contrib/
      
      	* gcc-changelog/git_commit.py (ChangeLogEntry): Handle entries
      	with multi-line file lists.
      	* gcc-changelog/test_email.py: New testcase.
      	* gcc-changelog/test_patches.txt: Likewise.
      519f2506
    • Pierre-Marie de Rodat's avatar
      gcc-changelog: remove file descriptor leaks · bb07057a
      Pierre-Marie de Rodat authored
      Currently, running gcc-changelog's unit tests may clutter the output
      with tons of warnings such as:
      
          .../contrib/gcc-changelog/git_email.py:40: ResourceWarning: unclosed
          file <_io.TextIOWrapper name='/tmp/tmpt5okd4qp.patch' mode='r'
          encoding='UTF-8'>
            lines = open(self.filename).read().splitlines()
          ResourceWarning: Enable tracemalloc to get the object allocation
          traceback
      
      This commit fixes these leaks, which restores a clean testsuite output.
      
      contrib/
      
      	* gcc-changelog/git_update_version.py: Close file objects after
      	use.
      	* gcc-changelog/git_email.py: Likewise.
      	* gcc-changelog/test_email.py: Likewise.
      bb07057a
    • Martin Liska's avatar
      Allow ChangeLog entries for ignored location. · 4945b4c2
      Martin Liska authored
      We should be able to generate ChangeLog entries for
      commits like b3d566f5.
      I'm going to install the patch.
      
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py: Parse changelog entries for
      	ignored locations.
      	* gcc-changelog/test_email.py: Add new test for it.
      	* gcc-changelog/test_patches.txt: Likewise.
      4945b4c2
  15. May 25, 2020
    • Martin Liska's avatar
      Allow only ignored files in ChangeLog entries. · deea3def
      Martin Liska authored
      	* gcc-changelog/git_commit.py: Add trailing '/'
      	for libdruntime.  Allow empty changelog for
      	only ignored files.
      	* gcc-changelog/test_email.py: New test for go
      	patch in ignored location.
      	* gcc-changelog/test_patches.txt: Add test.
      deea3def
  16. May 21, 2020
  17. May 20, 2020
  18. May 14, 2020
Loading