# HG changeset patch # User Mike Edgar # Date 1408740034 14400 # Node ID 7eef5a87ce3ff761711c69526bf422fdc2dc696d # Parent 0e38f2fbe91e7d50a70399b82816aeadbe68ef4a histedit: use str.startswith to check for comments in action list diff -r 0e38f2fbe91e -r 7eef5a87ce3f hgext/histedit.py --- a/hgext/histedit.py Fri Aug 22 16:37:55 2014 -0400 +++ b/hgext/histedit.py Fri Aug 22 16:40:34 2014 -0400 @@ -610,7 +610,7 @@ 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]