# HG changeset patch # User Yuya Nishihara # Date 2018-07-08 09:52:28 # Node ID 2834ac06d5a9be905ad811eca82c047a414af577 # Parent 4df549d0f1fdd08cbffddc9add60e52c10b6a6fb py3: fix revnums in bookmark discovery to be consumable more than once diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -658,7 +658,7 @@ def _pushdiscoverybookmarks(pushop): ui.debug("checking for updated bookmarks\n") ancestors = () if pushop.revs: - revnums = map(repo.changelog.rev, pushop.revs) + revnums = pycompat.maplist(repo.changelog.rev, pushop.revs) ancestors = repo.changelog.ancestors(revnums, inclusive=True) remotebookmark = listkeys(remote, 'bookmarks')