hgext/fetch.py
changeset 8112 6ee71f78497c
parent 7991 675a5a1ab0ee
child 8188 f3abe032fc89
--- a/hgext/fetch.py	Wed Apr 22 02:01:22 2009 +0200
+++ b/hgext/fetch.py	Wed Apr 22 02:01:22 2009 +0200
@@ -9,6 +9,7 @@
 from mercurial.i18n import _
 from mercurial.node import nullid, short
 from mercurial import commands, cmdutil, hg, util, url
+from mercurial.lock import release
 
 def fetch(ui, repo, source='default', **opts):
     '''pull changes from a remote repository, merge new changes if needed.
@@ -132,7 +133,7 @@
                                            short(n)))
 
     finally:
-        del lock, wlock
+        release(lock, wlock)
 
 cmdtable = {
     'fetch':