Patchwork D8849: dirstate: revert change to Rust binding

login
register
mail settings
Submitter phabricator
Date July 29, 2020, 11:10 p.m.
Message ID <differential-rev-PHID-DREV-nv76gyd2nawkcddhz66l-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46938/
State Superseded
Headers show

Comments

phabricator - July 29, 2020, 11:10 p.m.
joerg.sonnenberger created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8849

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: joerg.sonnenberger, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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: