From patchwork Sun Jul 4 21:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10950: dirstate-entry: goes through the `dirstatetuple` constructor in all cases From: phabricator X-Patchwork-Id: 49264 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sun, 4 Jul 2021 21:49:53 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We need to make sure we build an object. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10950 AFFECTED FILES mercurial/pure/parsers.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py +++ b/mercurial/pure/parsers.py @@ -425,7 +425,7 @@ if b'\0' in f: f, c = f.split(b'\0') copymap[f] = c - dmap[f] = e[:4] + dmap[f] = dirstatetuple(*e[:4]) return parents