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)