branch | extension |
changeset 45 | 5acf520f2115 |
parent 44 | dc6e7d0e607f |
child 46 | 67e9fb23a32b |
--- 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)