diff -r c83ad57627ae -r a232e6744ba3 mercurial/exchange.py --- a/mercurial/exchange.py Fri Aug 03 12:35:23 2018 -0700 +++ b/mercurial/exchange.py Fri Aug 03 11:02:34 2018 -0700 @@ -34,6 +34,7 @@ phases, pushkey, pycompat, + repository, scmutil, sslutil, streamclone, @@ -1432,7 +1433,7 @@ old_heads = unficl.heads() clstart = len(unficl) _pullbundle2(pullop) - if changegroup.NARROW_REQUIREMENT in repo.requirements: + if repository.NARROW_REQUIREMENT in repo.requirements: # XXX narrow clones filter the heads on the server side during # XXX getbundle and result in partial replies as well. # XXX Disable pull bundles in this case as band aid to avoid