dirstate-entry: goes through the `dirstatetuple` constructor in all cases
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 03 Jul 2021 03:55:23 +0200
changeset 47508 67d11b0f659f
parent 47507 d4c795576aeb
child 47509 80dc1d452993
dirstate-entry: goes through the `dirstatetuple` constructor in all cases We need to make sure we build an object. Differential Revision: https://phab.mercurial-scm.org/D10950
mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py	Sat Jul 03 03:48:35 2021 +0200
+++ b/mercurial/pure/parsers.py	Sat Jul 03 03:55:23 2021 +0200
@@ -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