changeset 4395:47ef2d228375

verify: hold write lock Verify will report spurious errors if commits or pulls happen during verify.
author Matt Mackall <mpm@selenic.com>
date Tue, 01 May 2007 14:42:54 -0500
parents a6436e9333db
children 15289406f89c
files mercurial/verify.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/verify.py	Mon Apr 30 09:32:44 2007 -0700
+++ b/mercurial/verify.py	Tue May 01 14:42:54 2007 -0500
@@ -17,6 +17,8 @@
     warnings = [0]
     neededmanifests = {}
 
+    lock = repo.lock()
+
     def err(msg):
         repo.ui.warn(msg + "\n")
         errors[0] += 1