transaction: fix release order in 'rewrite'
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 11 Dec 2015 10:49:29 +0000
changeset 1554 59f5bb1f1877
parent 1553 ed63bf62ff02
child 1555 0ff262537f98
transaction: fix release order in 'rewrite' This was wrong for quite sometime.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Dec 04 15:28:29 2015 -0800
+++ b/hgext/evolve.py	Fri Dec 11 10:49:29 2015 +0000
@@ -891,7 +891,7 @@
         tr.close()
         return newid, created
     finally:
-        lockmod.release(lock, wlock, tr)
+        lockmod.release(tr, lock, wlock)
 
 class MergeFailure(error.Abort):
     pass