switch lock releasing in the extensions from gc to explicit stable
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
Wed, 22 Apr 2009 02:01:22 +0200
branchstable
changeset 534 43d8c042ca20
parent 532 70220c2a4940
child 535 aa3d951d2f1a
child 536 af1cbe3a9141
switch lock releasing in the extensions from gc to explicit [ original upstream message ]
hgkw/keyword.py
--- a/hgkw/keyword.py	Tue Apr 21 09:56:07 2009 +0100
+++ b/hgkw/keyword.py	Wed Apr 22 02:01:22 2009 +0200
@@ -85,6 +85,7 @@
 from mercurial import commands, cmdutil, dispatch, filelog, revlog, extensions
 from mercurial import patch, localrepo, templater, templatefilters, util
 from mercurial.hgweb import webcommands
+from mercurial.lock import release
 from mercurial.node import nullid, hex
 from mercurial.i18n import _
 import re, shutil, tempfile, time
@@ -275,8 +276,7 @@
         lock = repo.lock()
         kwt.overwrite(None, expand, status[6])
     finally:
-        del wlock, lock
-
+        release(lock, wlock)
 
 def demo(ui, repo, *args, **opts):
     '''print [keywordmaps] configuration and an expansion example