mq: release lock after transaction in qrefresh
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 11 Aug 2016 15:05:17 +0200
changeset 30070 3006d0d26ad3
parent 30069 98b9846a131e
child 30071 2def3d55b1b9
mq: release lock after transaction in qrefresh The transaction should be closed within the lock.
hgext/mq.py
--- a/hgext/mq.py	Thu Aug 11 14:51:19 2016 +0200
+++ b/hgext/mq.py	Thu Aug 11 15:05:17 2016 +0200
@@ -1840,7 +1840,7 @@
 
                     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())