changeset 38604:2834ac06d5a9

py3: fix revnums in bookmark discovery to be consumable more than once
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 18:52:28 +0900
parents 4df549d0f1fd
children 85c74c5a1590
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')