From patchwork Mon Jun 18 12:33:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3791: py3: use pycompat.maplist() instead of map() in hgext/transplant.py From: phabricator X-Patchwork-Id: 32263 Message-Id: <4f65be88dc9b4e533526a751f7971d82@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 18 Jun 2018 12:33:30 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG365a78daf735: py3: use pycompat.maplist() instead of map() in hgext/transplant.py (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3791?vs=9162&id=9174 REVISION DETAIL https://phab.mercurial-scm.org/D3791 AFFECTED FILES hgext/transplant.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -682,7 +682,7 @@ sourcerepo = opts.get('source') if sourcerepo: peer = hg.peer(repo, opts, ui.expandpath(sourcerepo)) - heads = map(peer.lookup, opts.get('branch', ())) + heads = pycompat.maplist(peer.lookup, opts.get('branch', ())) target = set(heads) for r in revs: try: @@ -693,7 +693,7 @@ onlyheads=sorted(target), force=True) else: source = repo - heads = map(source.lookup, opts.get('branch', ())) + heads = pycompat.maplist(source.lookup, opts.get('branch', ())) cleanupfn = None try: @@ -708,7 +708,7 @@ matchfn = lambda x: tf(x) and x not in prune else: matchfn = tf - merges = map(source.lookup, opts.get('merge', ())) + merges = pycompat.maplist(source.lookup, opts.get('merge', ())) revmap = {} if revs: for r in scmutil.revrange(source, revs):