# HG changeset patch # User Pierre-Yves David # Date 2016-08-11 13:05:17 # Node ID 3006d0d26ad37f3e3e5f20559733cedb17688415 # Parent 98b9846a131e2006171ea136351c6d2dc76f7d8a mq: release lock after transaction in qrefresh The transaction should be closed within the lock. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1840,7 +1840,7 @@ class queue(object): self.applied.append(statusentry(n, patchfn)) finally: - lockmod.release(lock, tr) + lockmod.release(tr, lock) except: # re-raises ctx = repo[cparents[0]] repo.dirstate.rebuild(ctx.node(), ctx.manifest())