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
--- 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: