Mercurial > hg-stable
changeset 29767:b37f65b047c7
debugbuilddag: take wlock to cover '.hg/localtags'
This debug command can write local tags. local tags are in the .hg directory and
should be covered by the 'wlock'. This is now covered.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sun, 07 Aug 2016 17:15:19 +0200 |
parents | b303b3817d0e |
children | 46d9a5bb2fb0 |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Aug 08 17:33:45 2016 +0200 +++ b/mercurial/commands.py Sun Aug 07 17:15:19 2016 +0200 @@ -1987,8 +1987,9 @@ tags = [] - lock = tr = None + wlock = lock = tr = None try: + wlock = repo.wlock() lock = repo.lock() tr = repo.transaction("builddag") @@ -2073,7 +2074,7 @@ repo.vfs.write("localtags", "".join(tags)) finally: ui.progress(_('building'), None) - release(tr, lock) + release(tr, lock, wlock) @command('debugbundle', [('a', 'all', None, _('show all details')),