D10950: dirstate-entry: goes through the `dirstatetuple` constructor in all cases
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Jul 4 21:49:53 UTC 2021
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
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
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list