amend: fix unlocking order - first lock then wlock
authorMads Kiilerich <madski@unity3d.com>
Wed, 17 Apr 2013 03:41:08 +0200
changeset 19024 ab04e87a5f3b
parent 19023 86531a7038ed
child 19025 3af92401efb3
amend: fix unlocking order - first lock then wlock
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Wed Apr 17 03:40:18 2013 +0200
+++ b/mercurial/cmdutil.py	Wed Apr 17 03:41:08 2013 +0200
@@ -1790,7 +1790,7 @@
     finally:
         if newid is None:
             repo.dirstate.invalidate()
-        lockmod.release(wlock, lock)
+        lockmod.release(lock, wlock)
     return newid
 
 def commiteditor(repo, ctx, subs):