Patchwork D6160: store: recommend using `hg debugrebuildfncache` is fncache is corrupted

login
register
mail settings
Submitter phabricator
Date March 20, 2019, 5:40 p.m.
Message ID <differential-rev-PHID-DREV-vjf55bmrzq7kb42s3bss-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39340/
State Superseded
Headers show

Comments

phabricator - March 20, 2019, 5:40 p.m.
pulkit created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/store.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -482,7 +482,9 @@ 
                 pass
 
         if chunk:
-            raise error.Abort(_("fncache does not ends with a newline"))
+            raise error.Abort(_("fncache does not ends with a newline"),
+                              hint=_("use 'hg debugrebuildfncache' to rebuild"
+                                     " the fncache"))
         self._checkentries(fp)
         fp.close()