Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 38605: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 | 7c05198cd1ca |
children | 4d5fb4062f0b |
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')