hgkw/keyword.py
branchsolo-extension
changeset 61 1fe48bf82d05
parent 60 9771775ef322
child 63 5455c45db625
--- a/hgkw/keyword.py	Fri Dec 29 16:58:19 2006 +0100
+++ b/hgkw/keyword.py	Fri Dec 29 17:23:55 2006 +0100
@@ -140,20 +140,16 @@
     if hooktype != 'pretxncommit':
         return True
 
-    # reparse args, opts again as pretxncommit hook is silent about them
     cmd, sysargs, globalopts, cmdopts = commands.parse(ui, sys.argv[1:])[1:]
-    # exclude tag and import
     if repr(cmd).split()[1] in ('tag', 'import_'):
         return False
 
     files, match, anypats = cmdutil.matchpats(repo, sysargs, cmdopts)
-    # validity checks should have been done already
     modified, added = repo.status(files=files, match=match)[:2]
     candidates = [f for f in modified + added if not f.startswith('.hg')]
     if not candidates:
         return False
 
-    # only check files that are configured in keyword section
     files = []
     for pat, opt in repo.ui.configitems('keyword'):
         if opt == 'expand':