histedit: use str.startswith to check for comments in action list

This commit is contained in:
Mike Edgar 2014-08-22 16:40:34 -04:00
parent f32b610c93
commit 7d4f56ed60

View File

@ -610,7 +610,7 @@ def _histedit(ui, repo, *freeargs, **opts):
rules = f.read()
f.close()
rules = [l for l in (r.strip() for r in rules.splitlines())
if l and not l[0] == '#']
if l and not l.startswith('#')]
rules = verifyrules(rules, repo, ctxs)
parentctx = repo[root].parents()[0]