changeset 4915 | 97b734fb9c6f |
parent 4635 | 63b9d2deed48 |
child 5175 | 012dbf88b9b2 |
--- a/mercurial/verify.py Sat Jul 21 16:02:09 2007 -0500 +++ b/mercurial/verify.py Sat Jul 21 16:02:10 2007 -0500 @@ -10,6 +10,13 @@ import revlog, mdiff def verify(repo): + lock = repo.lock() + try: + return _verify(repo) + finally: + del lock + +def _verify(repo): filelinkrevs = {} filenodes = {} changesets = revisions = files = 0 @@ -17,8 +24,6 @@ warnings = [0] neededmanifests = {} - lock = repo.lock() - def err(msg): repo.ui.warn(msg + "\n") errors[0] += 1