From patchwork Tue Aug 8 14:52:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D265: exchange: access requirements on repo instead of peer From: phabricator X-Patchwork-Id: 22754 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 8 Aug 2017 14:52:22 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG033484935391: exchange: access requirements on repo instead of peer (authored by indygreg). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D265?vs=615&id=629 REVISION DETAIL https://phab.mercurial-scm.org/D265 AFFECTED FILES mercurial/exchange.py CHANGE DETAILS To: indygreg, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -1226,8 +1226,10 @@ opargs = {} pullop = pulloperation(repo, remote, heads, force, bookmarks=bookmarks, streamclonerequested=streamclonerequested, **opargs) - if pullop.remote.local(): - missing = set(pullop.remote.requirements) - pullop.repo.supported + + peerlocal = pullop.remote.local() + if peerlocal: + missing = set(peerlocal.requirements) - pullop.repo.supported if missing: msg = _("required features are not" " supported in the destination:"