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

login
register
mail settings
Submitter phabricator
Date March 20, 2019, 6:07 p.m.
Message ID <8535e6ea1cd74f6b2bcadf96bb7f7e8f@localhost.localdomain>
Download mbox | patch
Permalink /patch/39343/
State Not Applicable
Headers show

Comments

phabricator - March 20, 2019, 6:07 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3e7cfa17df5d: store: recommend using `hg debugrebuildfncache` is fncache is corrupted (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6160?vs=14566&id=14569

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