changeset 41989:3e7cfa17df5d

store: recommend using `hg debugrebuildfncache` is fncache is corrupted Differential Revision: https://phab.mercurial-scm.org/D6160
author Pulkit Goyal <pulkit@yandex-team.ru>
date Wed, 20 Mar 2019 20:39:44 +0300
parents f9344d04909e
children 22ed63869835
files mercurial/store.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Mon Mar 18 14:48:49 2019 +0300
+++ b/mercurial/store.py	Wed Mar 20 20:39:44 2019 +0300
@@ -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()