From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2066) id AA6D33851C24; Sat, 13 Jun 2020 02:49:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA6D33851C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592016561; bh=Fx2tIBTIA+ZIQXyTPCSoBk+X6VTKKnLph7GtTEjK3ik=; h=From:To:Subject:Date:From; b=Lci1nQga+dVdDDByqQZ2gPnbtYG8XuMyJhiOaasvX48dJw/1+pcMQBk4aRfcUanOU hJbYNUQ0DTr2KEQMEB7h6YuVvirOmF9MbJrKA358loASD7AE8bytriUpum/3hcMzK1 ecN1mLBmdf4SGyP4bxX/zowvBNknIZAale8TxASw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jiu Fu Guo To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/guojiufu/heads/guojiufu-branch)] gcc-changelog: add more Review by prefixes. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/guojiufu/heads/guojiufu-branch X-Git-Oldrev: 1ea9a0b74e60e6cdca6372403d7bd564a5410d82 X-Git-Newrev: 771e60dd073b4dc0663fa9282b854dafdd92242d Message-Id: <20200613024921.AA6D33851C24@sourceware.org> Date: Sat, 13 Jun 2020 02:49:21 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2020 02:49:21 -0000 https://gcc.gnu.org/g:771e60dd073b4dc0663fa9282b854dafdd92242d commit 771e60dd073b4dc0663fa9282b854dafdd92242d Author: Martin Liska Date: Wed Jun 10 09:57:51 2020 +0200 gcc-changelog: add more Review by prefixes. 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. Diff: --- contrib/gcc-changelog/git_commit.py | 8 +++----- contrib/gcc-changelog/test_email.py | 5 +++-- contrib/gcc-changelog/test_patches.txt | 4 ++++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 0b350ba7fda..eac64887053 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -159,12 +159,10 @@ LINE_LIMIT = 100 TAB_WIDTH = 8 CO_AUTHORED_BY_PREFIX = 'co-authored-by: ' CHERRY_PICK_PREFIX = '(cherry picked from commit ' -REVIEWED_BY_PREFIX = 'reviewed-by: ' -REVIEWED_ON_PREFIX = 'reviewed-on: ' -SIGNED_OFF_BY_PREFIX = 'signed-off-by: ' -REVIEW_PREFIXES = (REVIEWED_BY_PREFIX, REVIEWED_ON_PREFIX, - SIGNED_OFF_BY_PREFIX) +REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ', + 'acked-by: ', 'tested-by: ', 'reported-by: ', + 'suggested-by: ') class Error: diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py index df57bb5c94a..c50687bc331 100755 --- a/contrib/gcc-changelog/test_email.py +++ b/contrib/gcc-changelog/test_email.py @@ -161,8 +161,9 @@ class TestGccChangelog(unittest.TestCase): def test_additional_author_list(self): email = self.from_patch_glob('0342') - assert (email.errors[1].message == 'additional author must be indented ' - 'with one tab and four spaces') + msg = 'additional author must be indented ' \ + 'with one tab and four spaces' + assert email.errors[1].message == msg def test_trailing_whitespaces(self): email = self.get_git_email('trailing-whitespaces.patch') diff --git a/contrib/gcc-changelog/test_patches.txt b/contrib/gcc-changelog/test_patches.txt index 15fe0df1ccc..1dec932f783 100644 --- a/contrib/gcc-changelog/test_patches.txt +++ b/contrib/gcc-changelog/test_patches.txt @@ -2430,6 +2430,10 @@ Signed-off-by: Keith Packard Reviewed-by: Keith Packard Reviewed-on: Keith Packard Co-Authored-by: Keith Packard +Acked-By: Keith Packard +Tested-by: Keith Packard +Reported-by: Keith Packard +Suggested-by: Keith Packard --- gcc/ChangeLog | 5 +++++ gcc/config/riscv/riscv.c | 40 ++++++++++++++++++++++++++++++++++++++++