# HG changeset patch # User Mike Edgar # Date 2014-08-22 20:40:34 # Node ID 7eef5a87ce3ff761711c69526bf422fdc2dc696d # Parent 0e38f2fbe91e7d50a70399b82816aeadbe68ef4a histedit: use str.startswith to check for comments in action list diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -610,7 +610,7 @@ def _histedit(ui, repo, *freeargs, **opt 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]