update_hg_bookmarks: add wlock

This commit is contained in:
Sean Farley 2015-09-24 16:24:27 -07:00
parent 22991894df
commit 12c6012084

View File

@ -1299,7 +1299,11 @@ class GitHandler(object):
bms[head + suffix] = hgsha bms[head + suffix] = hgsha
if heads: if heads:
bms.write() wlock = self.repo.wlock()
try:
bms.write()
finally:
wlock.release()
except AttributeError: except AttributeError:
self.ui.warn(_('creating bookmarks failed, do you have' self.ui.warn(_('creating bookmarks failed, do you have'