Mercurial > hg-git
changeset 934:674f799afb04
update_hg_bookmarks: add wlock
author | Sean Farley <sean@farley.io> |
---|---|
date | Thu, 24 Sep 2015 16:24:27 -0700 |
parents | 7b89630a2a48 |
children | f7d0175264ce |
files | hggit/git_handler.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py Thu May 14 15:15:37 2015 -0700 +++ b/hggit/git_handler.py Thu Sep 24 16:24:27 2015 -0700 @@ -1299,7 +1299,11 @@ bms[head + suffix] = hgsha if heads: - bms.write() + wlock = self.repo.wlock() + try: + bms.write() + finally: + wlock.release() except AttributeError: self.ui.warn(_('creating bookmarks failed, do you have'