# HG changeset patch # User Ronny Pfannschmidt # Date 1240358482 -7200 # Node ID 43d8c042ca2025b9f04f546a890db14212559c7d # Parent 70220c2a4940620cff448955ebf954c2e3558ff0 switch lock releasing in the extensions from gc to explicit [ original upstream message ] diff -r 70220c2a4940 -r 43d8c042ca20 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