diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1032,11 +1032,7 @@ A tuple of (includes, excludes). """ - source = self - if self.shared(): - from . import hg - source = hg.sharedreposource(self) - return narrowspec.load(source) + return narrowspec.load(self) @storecache(narrowspec.FILENAME) def _narrowmatch(self):