diff hgext/rebase.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 5ec526c1a32f
children 2b30d8488819
line wrap: on
line diff
--- a/hgext/rebase.py	Wed Apr 22 02:01:22 2009 +0200
+++ b/hgext/rebase.py	Wed Apr 22 02:01:22 2009 +0200
@@ -18,6 +18,7 @@
 from mercurial import extensions, ancestor, copies, patch
 from mercurial.commands import templateopts
 from mercurial.node import nullrev
+from mercurial.lock import release
 from mercurial.i18n import _
 import os, errno
 
@@ -141,7 +142,7 @@
         if skipped:
             ui.note(_("%d revisions have been skipped\n") % len(skipped))
     finally:
-        del lock, wlock
+        release(lock, wlock)
 
 def concludenode(repo, rev, p1, p2, state, collapse, last=False, skipped={},
                  extrafn=None):