diff hgext/mq.py @ 30070:3006d0d26ad3

mq: release lock after transaction in qrefresh The transaction should be closed within the lock.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 11 Aug 2016 15:05:17 +0200
parents 0342bf292f73
children d79c141fdf41
line wrap: on
line diff
--- 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())