Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 22 Apr 2009 10:28:29 +0100
changeset 535 aa3d951d2f1a
parent 533 fa7d7d6ca1ad (current diff)
parent 534 43d8c042ca20 (diff)
child 537 37a22db17285
Merge with stable
--- a/hgkw/keyword.py	Tue Apr 21 11:37:50 2009 +0100
+++ b/hgkw/keyword.py	Wed Apr 22 10:28:29 2009 +0100
@@ -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