# HG changeset patch # User Martin von Zweigbergk # Date 2018-09-21 16:34:41 # Node ID 543f26ece6cf09d9ab36ff601ec53422f6b54b91 # Parent 97f2992c26f69b27af64e59c91a6fa0a706f9252 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 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1032,11 +1032,7 @@ class localrepository(object): 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):