# HG changeset patch # User Pierre-Yves David # Date 1470582919 -7200 # Node ID b37f65b047c79c04ecaf6c2402635d1a68a90662 # Parent b303b3817d0ec308c2df7d885788f778b0b30b9c 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. diff -r b303b3817d0e -r b37f65b047c7 mercurial/commands.py --- 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')),