Show More
@@ -58,6 +58,7 b' class verifier(object):' | |||||
58 | self.revlogv1 = repo.changelog.version != revlog.REVLOGV0 |
|
58 | self.revlogv1 = repo.changelog.version != revlog.REVLOGV0 | |
59 | self.lrugetctx = util.lrucachefunc(repo.changectx) |
|
59 | self.lrugetctx = util.lrucachefunc(repo.changectx) | |
60 | self.refersmf = False |
|
60 | self.refersmf = False | |
|
61 | self.fncachewarned = False | |||
61 |
|
62 | |||
62 | def verify(self): |
|
63 | def verify(self): | |
63 | repo = self.repo |
|
64 | repo = self.repo | |
@@ -256,7 +257,6 b' class verifier(object):' | |||||
256 | elif size > 0 or not revlogv1: |
|
257 | elif size > 0 or not revlogv1: | |
257 | storefiles.add(_normpath(f)) |
|
258 | storefiles.add(_normpath(f)) | |
258 |
|
259 | |||
259 | fncachewarned = False |
|
|||
260 | files = sorted(set(filenodes) | set(filelinkrevs)) |
|
260 | files = sorted(set(filenodes) | set(filelinkrevs)) | |
261 | total = len(files) |
|
261 | total = len(files) | |
262 | for i, f in enumerate(files): |
|
262 | for i, f in enumerate(files): | |
@@ -283,7 +283,7 b' class verifier(object):' | |||||
283 | storefiles.remove(ff) |
|
283 | storefiles.remove(ff) | |
284 | except KeyError: |
|
284 | except KeyError: | |
285 | warn(_(" warning: revlog '%s' not in fncache!") % ff) |
|
285 | warn(_(" warning: revlog '%s' not in fncache!") % ff) | |
286 | fncachewarned = True |
|
286 | self.fncachewarned = True | |
287 |
|
287 | |||
288 | checklog(fl, f, lr) |
|
288 | checklog(fl, f, lr) | |
289 | seen = {} |
|
289 | seen = {} | |
@@ -353,7 +353,7 b' class verifier(object):' | |||||
353 | (len(files), len(cl), revisions)) |
|
353 | (len(files), len(cl), revisions)) | |
354 | if warnings[0]: |
|
354 | if warnings[0]: | |
355 | ui.warn(_("%d warnings encountered!\n") % warnings[0]) |
|
355 | ui.warn(_("%d warnings encountered!\n") % warnings[0]) | |
356 | if fncachewarned: |
|
356 | if self.fncachewarned: | |
357 | ui.warn(_('hint: run "hg debugrebuildfncache" to recover from ' |
|
357 | ui.warn(_('hint: run "hg debugrebuildfncache" to recover from ' | |
358 | 'corrupt fncache\n')) |
|
358 | 'corrupt fncache\n')) | |
359 | if errors[0]: |
|
359 | if errors[0]: |
General Comments 0
You need to be logged in to leave comments.
Login now