gcc-changelog: fix parse_git_name_status for renames.
authorMartin Liska <mliska@suse.cz>
Wed, 10 Jun 2020 14:07:10 +0000 (16:07 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 10 Jun 2020 14:07:10 +0000 (16:07 +0200)
commit50ff02b534195c12298c64311d03a8b2d2dc261f
tree29d6a412d7b2d28cfc1fa7ac486ac059e419f9a8
parent4fed5d5dd85e3f5d812d125f692351646a0417cb
gcc-changelog: fix parse_git_name_status for renames.

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.
contrib/gcc-changelog/git_commit.py
contrib/gcc-changelog/test_email.py