Patchwork D10950: dirstate-entry: goes through the `dirstatetuple` constructor in all cases

login
register
mail settings
Submitter phabricator
Date July 4, 2021, 9:49 p.m.
Message ID <differential-rev-PHID-DREV-et5xeidgrl4lxiebzaux-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49264/
State Superseded
Headers show

Comments

phabricator - July 4, 2021, 9:49 p.m.
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

Patch

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