py3: fix revnums in bookmark discovery to be consumable more than once
authorYuya Nishihara <yuya@tcha.org>
Sun, 08 Jul 2018 18:52:28 +0900
changeset 38604 2834ac06d5a9
parent 38603 4df549d0f1fd
child 38605 85c74c5a1590
py3: fix revnums in bookmark discovery to be consumable more than once
mercurial/exchange.py
--- a/mercurial/exchange.py	Sun Jul 08 19:05:00 2018 +0900
+++ b/mercurial/exchange.py	Sun Jul 08 18:52:28 2018 +0900
@@ -658,7 +658,7 @@
     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')