mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
histedit: use str.startswith to check for comments in action list
This commit is contained in:
parent
f32b610c93
commit
7d4f56ed60
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user