# HG changeset patch # User Christian Ebert # Date 1166695341 -3600 # Node ID 5acf520f2115e0754aeedc3409a58602fd92f7bb # Parent dc6e7d0e607f6139086202798c6b96e4acbff46b Exclude import command too diff -r dc6e7d0e607f -r 5acf520f2115 hgkw/pretxnkw.py --- a/hgkw/pretxnkw.py Thu Dec 21 00:48:56 2006 +0100 +++ b/hgkw/pretxnkw.py Thu Dec 21 11:02:21 2006 +0100 @@ -15,8 +15,8 @@ # reparse args, opts again as pretxncommit hook is silent about them cmd, sysargs, globalopts, cmdopts = commands.parse(ui, sys.argv[1:])[1:] - # exclude tagging - if repr(cmd).split()[1] == 'tag': + # exclude tag and import + if repr(cmd).split()[1] in ('tag', 'import_'): return False files, match, anypats = cmdutil.matchpats(repo, sysargs, cmdopts)