# HG changeset patch # User Christian Ebert # Date 1167409435 -3600 # Node ID 1fe48bf82d056f1ece05baccab888357c10c5ab8 # Parent 9771775ef32273dbe6314f39eb16eb4247005cad Remove more internal comments diff -r 9771775ef322 -r 1fe48bf82d05 hgkw/keyword.py --- 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':