hgext/histedit.py
changeset 22280 7eef5a87ce3f
parent 22279 0e38f2fbe91e
child 22296 650b5b6e75ed
--- 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]