From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 4A05F385274A; Tue, 2 Aug 2022 08:52:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A05F385274A MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1927] gcc-changelog: do not run extra deduction X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: c30bbd4d169c98b7535a30384c6a971ee875fa44 X-Git-Newrev: c2d074293824cf8d4b24f00d94013124214e6fe5 Message-Id: <20220802085219.4A05F385274A@sourceware.org> Date: Tue, 2 Aug 2022 08:52:19 +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: Tue, 02 Aug 2022 08:52:19 -0000 https://gcc.gnu.org/g:c2d074293824cf8d4b24f00d94013124214e6fe5 commit r13-1927-gc2d074293824cf8d4b24f00d94013124214e6fe5 Author: Martin Liska Date: Tue Aug 2 10:50:07 2022 +0200 gcc-changelog: do not run extra deduction Do not deduce changelog for root ChangeLog (''). contrib/ChangeLog: * gcc-changelog/git_commit.py: Do not deduce changelog for root ChangeLog. Diff: --- contrib/gcc-changelog/git_commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index a6b5ff04f22..7f6ff87ba99 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -626,7 +626,7 @@ class GitCommit: def deduce_changelog_locations(self): for entry in self.changelog_entries: - if not entry.folder: + if entry.folder is None: changelog = None for file in entry.files: location = self.get_file_changelog_location(file)