changeset 39774:543f26ece6cf

narrow: remove hack to read narowspec from shared .hg directory This was another leftover from 576eef1ab43d (narrow: move .hg/narrowspec to .hg/store/narrowspec (BC), 2018-08-02), in addition to 623081f2abc2 (narrow: remove hack to write narrowspec to shared .hg directory, 2018-09-12). Differential Revision: https://phab.mercurial-scm.org/D4692
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 21 Sep 2018 09:34:41 -0700
parents 97f2992c26f6
children aeb2812f304d
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Sep 21 11:43:46 2018 -0400
+++ b/mercurial/localrepo.py	Fri Sep 21 09:34:41 2018 -0700
@@ -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):