hgkw/keyword.py
branchkwmap-templates
changeset 99 f881ecdcdec9
parent 97 9353e7ce6d9b
child 100 4f1129ddbdb8
--- a/hgkw/keyword.py	Sun Jan 14 18:38:30 2007 +0100
+++ b/hgkw/keyword.py	Mon Jan 15 15:41:59 2007 +0100
@@ -186,18 +186,15 @@
     # some day
     from mercurial import 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]
     candidates = kwfmatches(ui, repo, modified+added)
     if not candidates:
-        return False
+        return
 
     kwt = kwtemplater(ui, repo, node=repo.changelog.tip())
     for f in candidates: