diff -r c83ad57627ae -r a232e6744ba3 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Aug 03 12:35:23 2018 -0700 +++ b/mercurial/localrepo.py Fri Aug 03 11:02:34 2018 -0700 @@ -825,7 +825,7 @@ @repofilecache(narrowspec.FILENAME) def _narrowmatch(self): - if changegroup.NARROW_REQUIREMENT not in self.requirements: + if repository.NARROW_REQUIREMENT not in self.requirements: return matchmod.always(self.root, '') include, exclude = self.narrowpats return narrowspec.match(self.root, include=include, exclude=exclude)