hgext/narrow/narrowbundle2.py
changeset 38835 a232e6744ba3
parent 38808 d99083996398
child 38884 a2f521773761
--- a/hgext/narrow/narrowbundle2.py	Fri Aug 03 12:35:23 2018 -0700
+++ b/hgext/narrow/narrowbundle2.py	Fri Aug 03 11:02:34 2018 -0700
@@ -23,6 +23,7 @@
     extensions,
     narrowspec,
     repair,
+    repository,
     util,
     wireprototypes,
 )
@@ -174,8 +175,8 @@
 def _handlechangespec_2(op, inpart):
     includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines())
     excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines())
-    if not changegroup.NARROW_REQUIREMENT in op.repo.requirements:
-        op.repo.requirements.add(changegroup.NARROW_REQUIREMENT)
+    if not repository.NARROW_REQUIREMENT in op.repo.requirements:
+        op.repo.requirements.add(repository.NARROW_REQUIREMENT)
         op.repo._writerequirements()
     op.repo.setnarrowpats(includepats, excludepats)