diff hgext/fetch.py @ 8112:6ee71f78497c

switch lock releasing in the extensions from gc to explicit
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Wed, 22 Apr 2009 02:01:22 +0200
parents 675a5a1ab0ee
children f3abe032fc89
line wrap: on
line diff
--- 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':