# HG changeset patch # User Joerg Sonnenberger # Date 2020-07-29 23:10:10 # Node ID e0bfde04f957d959999fc95c147aa39edcd3b8a1 # Parent 13814622b3b1a46308375a9fb4c6641fa495528f 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 diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -1835,7 +1835,7 @@ if rustmod is not None: 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: