Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/exchange.py Wed Jul 19 13:17:49 2017 -0700 +++ b/mercurial/exchange.py Wed Apr 03 11:21:27 2019 -0700 @@ -707,8 +707,8 @@ remotebookmark = listkeys(remote, 'bookmarks') - explicit = set([repo._bookmarks.expandname(bookmark) - for bookmark in pushop.bookmarks]) + explicit = {repo._bookmarks.expandname(bookmark) + for bookmark in pushop.bookmarks} remotebookmark = bookmod.unhexlifybookmarks(remotebookmark) comp = bookmod.comparebookmarks(repo, repo._bookmarks, remotebookmark)