dirstate: revert change to Rust binding
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 30 Jul 2020 01:10:10 +0200
changeset 45241 e0bfde04f957
parent 45239 13814622b3b1
child 45242 5780a04a1b46
dirstate: revert change to Rust binding The Rust binding uses its own class and is not derived from the regular implementation. As such, it didn't get _nodelen. Differential Revision: https://phab.mercurial-scm.org/D8849
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Thu Jul 23 23:52:31 2020 +0200
+++ b/mercurial/dirstate.py	Thu Jul 30 01:10:10 2020 +0200
@@ -1835,7 +1835,7 @@
             if not self._parents:
                 try:
                     fp = self._opendirstatefile()
-                    st = fp.read(2 * self._nodelen)
+                    st = fp.read(40)
                     fp.close()
                 except IOError as err:
                     if err.errno != errno.ENOENT: