Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 38874:a232e6744ba3
narrow: move requirement constant from changegroup to repository
As suggested by Gregory Szorc.
Differential Revision: https://phab.mercurial-scm.org/D4094
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 03 Aug 2018 11:02:34 -0700 |
parents | e7aa113b14f7 |
children | df0873ab5c14 |
line wrap: on
line diff
--- 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)