# HG changeset patch # User Martin von Zweigbergk # Date 2017-06-19 18:24:49 # Node ID 4c6e4a4486a0b00bdc6737f624a1e30c440b7f36 # Parent f044295cdb7afa3078eb542a720500a5621e46e8 repair: remove unnecessary locking for bookmarks The caller has already locked the repo. diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -216,9 +216,8 @@ def strip(ui, repo, nodelist, backup=Tru 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():