Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hbisect.py @ 42057:566daffc607d
cleanup: use set literals where possible
Differential Revision: https://phab.mercurial-scm.org/D6192
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 03 Apr 2019 11:21:27 -0700 |
parents | 71f189941791 |
children | 21eda240be07 |
line wrap: on
line diff
--- a/mercurial/hbisect.py Wed Jul 19 13:17:49 2017 -0700 +++ b/mercurial/hbisect.py Wed Apr 03 11:21:27 2019 -0700 @@ -34,7 +34,7 @@ changelog = repo.changelog clparents = changelog.parentrevs - skip = set([changelog.rev(n) for n in state['skip']]) + skip = {changelog.rev(n) for n in state['skip']} def buildancestors(bad, good): badrev = min([changelog.rev(n) for n in bad])