# HG changeset patch # User Christian Ebert # Date 1168872119 -3600 # Node ID f881ecdcdec9312aa45d4ef96441b6f4f07ef1aa # Parent 9353e7ce6d9b9b53788652825abf3929a2196761 Same as for hardcoded branch: omit hooktype test, return w/o explicit value diff -r 9353e7ce6d9b -r f881ecdcdec9 hgkw/keyword.py --- a/hgkw/keyword.py Sun Jan 14 18:38:30 2007 +0100 +++ b/hgkw/keyword.py Mon Jan 15 15:41:59 2007 +0100 @@ -186,18 +186,15 @@ # some day from mercurial import commands - if hooktype != 'pretxncommit': - return True - cmd, sysargs, globalopts, cmdopts = commands.parse(ui, sys.argv[1:])[1:] if repr(cmd).split()[1] in ('tag', 'import_'): - return False + return files, match, anypats = cmdutil.matchpats(repo, sysargs, cmdopts) modified, added = repo.status(files=files, match=match)[:2] candidates = kwfmatches(ui, repo, modified+added) if not candidates: - return False + return kwt = kwtemplater(ui, repo, node=repo.changelog.tip()) for f in candidates: