mercurial/exchange.py
changeset 38835 a232e6744ba3
parent 38808 d99083996398
child 39158 b0c73866c9fb
--- 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