Exclude import command too extension
authorChristian Ebert <blacktrash@gmx.net>
Thu, 21 Dec 2006 11:02:21 +0100
branchextension
changeset 45 5acf520f2115
parent 44 dc6e7d0e607f
child 46 67e9fb23a32b
child 47 0617e7d497f6
Exclude import command too
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)