hgext/transplant.py
changeset 8112 6ee71f78497c
parent 8076 5ec526c1a32f
child 8173 d3fb413667e5
--- a/hgext/transplant.py	Wed Apr 22 02:01:22 2009 +0200
+++ b/hgext/transplant.py	Wed Apr 22 02:01:22 2009 +0200
@@ -168,7 +168,8 @@
         finally:
             self.saveseries(revmap, merges)
             self.transplants.write()
-            del lock, wlock
+            lock.release()
+            wlock.release()
 
     def filter(self, filter, changelog, patchfile):
         '''arbitrarily rewrite changeset before applying it'''
@@ -293,7 +294,7 @@
 
             return n, node
         finally:
-            del wlock
+            wlock.release()
 
     def readseries(self):
         nodes = []