mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revset: replace for-loop with list comprehension
This commit is contained in:
parent
f80e0eddc7
commit
35ad577c17
@ -698,11 +698,7 @@ def bisected(repo, subset, x):
|
||||
if state not in ('good', 'bad', 'skip', 'unknown'):
|
||||
raise ParseError(_('invalid bisect state'))
|
||||
marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
|
||||
l = []
|
||||
for r in subset:
|
||||
if r in marked:
|
||||
l.append(r)
|
||||
return l
|
||||
return [r for r in subset if r in marked]
|
||||
|
||||
symbols = {
|
||||
"adds": adds,
|
||||
|
Loading…
Reference in New Issue
Block a user