branch | self_initializing_hook |
changeset 98 | 121da9c0a325 |
parent 96 | 682e684a15e9 |
child 157 | 64dce6787d82 |
--- 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]