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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Mar 20 13:40:18 EDT 2019


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

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()
 



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


More information about the Mercurial-devel mailing list