D4692: narrow: remove hack to read narowspec from shared .hg directory

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Sep 21 16:43:08 UTC 2018


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This was another leftover from https://phab.mercurial-scm.org/rHG576eef1ab43dd0782dde125046a71dc8a699f3a6 (narrow: move
  .hg/narrowspec to .hg/store/narrowspec (BC), 2018-08-02), in addition
  to https://phab.mercurial-scm.org/rHG623081f2abc2c99dfa52344051976c5d33b63ee3 (narrow: remove hack to write narrowspec to shared .hg
  directory, 2018-09-12).

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4692

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

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):



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list