Mercurial > public > mercurial-scm > hg
diff mercurial/repair.py @ 32925:4c6e4a4486a0
repair: remove unnecessary locking for bookmarks
The caller has already locked the repo.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 19 Jun 2017 11:24:49 -0700 |
parents | f044295cdb7a |
children | d11e2343762b |
line wrap: on
line diff
--- 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():