# HG changeset patch # User Christian Ebert # Date 1168871916 -3600 # Node ID 121da9c0a32533fa46e8aad13a2bbe132fae650c # Parent 682e684a15e95941d7d60a196cf72d61fb14b6cb Omit hook test; return w/o explicit value (==False) diff -r 682e684a15e9 -r 121da9c0a325 hgkw/keyword.py --- a/hgkw/keyword.py Sun Jan 14 14:00:45 2007 +0100 +++ b/hgkw/keyword.py Mon Jan 15 15:38:36 2007 +0100 @@ -165,12 +165,9 @@ # some day from mercurial import cmdutil, 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]