Mercurial > hg
changeset 22280:7eef5a87ce3f
histedit: use str.startswith to check for comments in action list
author | Mike Edgar <adgar@google.com> |
---|---|
date | Fri, 22 Aug 2014 16:40:34 -0400 |
parents | 0e38f2fbe91e |
children | 4092d12ba18a |
files | hgext/histedit.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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]