hgkw/keyword.py
branchstable
changeset 534 43d8c042ca20
parent 532 70220c2a4940
child 538 db71342ad29d
--- 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