Mercurial > public > mercurial-scm > hg-stable
diff mercurial/verify.py @ 25653:9d1e04f5dca7
verify: print hint to run debugrebuildfncache
Corrupt fncache is now a recoverable operation. Inform the user how to
recover from this warning.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 20 Jun 2015 20:11:53 -0700 |
parents | 9573d8f346f1 |
children | 328739ea70c3 |
line wrap: on
line diff
--- a/mercurial/verify.py Mon Jun 22 09:59:48 2015 -0700 +++ b/mercurial/verify.py Sat Jun 20 20:11:53 2015 -0700 @@ -219,6 +219,7 @@ elif size > 0 or not revlogv1: storefiles.add(_normpath(f)) + fncachewarned = False files = sorted(set(filenodes) | set(filelinkrevs)) total = len(files) for i, f in enumerate(files): @@ -245,6 +246,7 @@ storefiles.remove(ff) except KeyError: warn(_(" warning: revlog '%s' not in fncache!") % ff) + fncachewarned = True checklog(fl, f, lr) seen = {} @@ -313,6 +315,9 @@ (len(files), len(cl), revisions)) if warnings[0]: ui.warn(_("%d warnings encountered!\n") % warnings[0]) + if fncachewarned: + ui.warn(_('hint: run "hg debugrebuildfncache" to recover from ' + 'corrupt fncache\n')) if errors[0]: ui.warn(_("%d integrity errors encountered!\n") % errors[0]) if badrevs: