Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 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 | b10d145837bc |
children | 5ccd791344f3 |
comparison
equal
deleted
inserted
replaced
39773:97f2992c26f6 | 39774:543f26ece6cf |
---|---|
1030 def narrowpats(self): | 1030 def narrowpats(self): |
1031 """matcher patterns for this repository's narrowspec | 1031 """matcher patterns for this repository's narrowspec |
1032 | 1032 |
1033 A tuple of (includes, excludes). | 1033 A tuple of (includes, excludes). |
1034 """ | 1034 """ |
1035 source = self | 1035 return narrowspec.load(self) |
1036 if self.shared(): | |
1037 from . import hg | |
1038 source = hg.sharedreposource(self) | |
1039 return narrowspec.load(source) | |
1040 | 1036 |
1041 @storecache(narrowspec.FILENAME) | 1037 @storecache(narrowspec.FILENAME) |
1042 def _narrowmatch(self): | 1038 def _narrowmatch(self): |
1043 if repository.NARROW_REQUIREMENT not in self.requirements: | 1039 if repository.NARROW_REQUIREMENT not in self.requirements: |
1044 return matchmod.always(self.root, '') | 1040 return matchmod.always(self.root, '') |