comparison hgext/rebase.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 169c386cc9d8
children 1b5cec8b6a1e
comparison
equal deleted inserted replaced
42056:4950ae4d034f 42057:566daffc607d
1876 1876
1877 `obsoleteextinctsuccessors` is a set of obsolete revisions with only 1877 `obsoleteextinctsuccessors` is a set of obsolete revisions with only
1878 obsolete successors. 1878 obsolete successors.
1879 """ 1879 """
1880 obsoletenotrebased = {} 1880 obsoletenotrebased = {}
1881 obsoletewithoutsuccessorindestination = set([]) 1881 obsoletewithoutsuccessorindestination = set()
1882 obsoleteextinctsuccessors = set([]) 1882 obsoleteextinctsuccessors = set()
1883 1883
1884 assert repo.filtername is None 1884 assert repo.filtername is None
1885 cl = repo.changelog 1885 cl = repo.changelog
1886 nodemap = cl.nodemap 1886 nodemap = cl.nodemap
1887 extinctrevs = set(repo.revs('extinct()')) 1887 extinctrevs = set(repo.revs('extinct()'))