comparison mercurial/exchange.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 1eb2fc21da12
children 280f7a095df8
comparison
equal deleted inserted replaced
42056:4950ae4d034f 42057:566daffc607d
705 revnums = pycompat.maplist(repo.changelog.rev, pushop.revs) 705 revnums = pycompat.maplist(repo.changelog.rev, pushop.revs)
706 ancestors = repo.changelog.ancestors(revnums, inclusive=True) 706 ancestors = repo.changelog.ancestors(revnums, inclusive=True)
707 707
708 remotebookmark = listkeys(remote, 'bookmarks') 708 remotebookmark = listkeys(remote, 'bookmarks')
709 709
710 explicit = set([repo._bookmarks.expandname(bookmark) 710 explicit = {repo._bookmarks.expandname(bookmark)
711 for bookmark in pushop.bookmarks]) 711 for bookmark in pushop.bookmarks}
712 712
713 remotebookmark = bookmod.unhexlifybookmarks(remotebookmark) 713 remotebookmark = bookmod.unhexlifybookmarks(remotebookmark)
714 comp = bookmod.comparebookmarks(repo, repo._bookmarks, remotebookmark) 714 comp = bookmod.comparebookmarks(repo, repo._bookmarks, remotebookmark)
715 715
716 def safehex(x): 716 def safehex(x):