# HG changeset patch # User Benoit Boissinot # Date 2009-03-07 19:04:56 # Node ID 1fce19b9b0116070e0afa55d72d64adfd3bd0fe2 # Parent b5ed0ab8cc74b25124aaec358366e1e7aaec8057 verify: do not abort on fully corrupted revlog diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -7,7 +7,7 @@ from node import nullid, short from i18n import _ -import revlog, util +import revlog, util, error def verify(repo): lock = repo.lock() @@ -172,7 +172,11 @@ def _verify(repo): files = util.sort(util.unique(filenodes.keys() + filelinkrevs.keys())) for f in files: - fl = repo.file(f) + try: + fl = repo.file(f) + except error.RevlogError, e: + err(0, _("broken revlog! (%s)") % e, f) + continue for ff in fl.files(): try: