mercurial/commands.py
changeset 5053 47a8ea1eb2c3
parent 5034 c0417a319e39
child 5062 0f594cc36aed
child 5068 d5126a0172ba
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1623,7 +1623,7 @@ def import_(ui, repo, patch1, *patches, 
             finally:
                 os.unlink(tmpname)
     finally:
-        del wlock, lock
+        del lock, wlock
 
 def incoming(ui, repo, source="default", **opts):
     """show new changesets found in source