Mercurial > hg > mercurial-source
changeset 33708: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 | 038bfc384271 |
files | mercurial/repair.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -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():