switch lock releasing in the extensions from gc to explicit
[ original upstream message ]
--- 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