repair: remove unnecessary locking for bookmarks
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 19 Jun 2017 11:24:49 -0700
changeset 32943 4c6e4a4486a0
parent 32942 f044295cdb7a
child 32944 038bfc384271
repair: remove unnecessary locking for bookmarks The caller has already locked the repo.
mercurial/repair.py
--- a/mercurial/repair.py	Mon Jun 19 13:18:00 2017 -0700
+++ b/mercurial/repair.py	Mon Jun 19 11:24:49 2017 -0700
@@ -216,9 +216,8 @@
         for m in updatebm:
             bm[m] = repo[newbmtarget].node()
 
-        with repo.lock():
-            with repo.transaction('repair') as tr:
-                bm.recordchange(tr)
+        with repo.transaction('repair') as tr:
+            bm.recordchange(tr)
 
         # remove undo files
         for undovfs, undofile in repo.undofiles():