diff -r fa7d7d6ca1ad -r aa3d951d2f1a hgkw/keyword.py --- 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