equal
deleted
inserted
replaced
1048 # Key to signature value. |
1048 # Key to signature value. |
1049 self._sparsesignaturecache = {} |
1049 self._sparsesignaturecache = {} |
1050 # Signature to cached matcher instance. |
1050 # Signature to cached matcher instance. |
1051 self._sparsematchercache = {} |
1051 self._sparsematchercache = {} |
1052 |
1052 |
|
1053 self._extrafilterid = repoview.extrafilter(ui) |
|
1054 |
1053 def _getvfsward(self, origfunc): |
1055 def _getvfsward(self, origfunc): |
1054 """build a ward for self.vfs""" |
1056 """build a ward for self.vfs""" |
1055 rref = weakref.ref(self) |
1057 rref = weakref.ref(self) |
1056 def checkvfs(path, mode=None): |
1058 def checkvfs(path, mode=None): |
1057 ret = origfunc(path, mode=mode) |
1059 ret = origfunc(path, mode=mode) |
1195 example calling `repo.filtered("served")` will return a repoview using |
1197 example calling `repo.filtered("served")` will return a repoview using |
1196 the "served" view, regardless of the initial view used by `repo`. |
1198 the "served" view, regardless of the initial view used by `repo`. |
1197 |
1199 |
1198 In other word, there is always only one level of `repoview` "filtering". |
1200 In other word, there is always only one level of `repoview` "filtering". |
1199 """ |
1201 """ |
|
1202 if self._extrafilterid is not None and '%' not in name: |
|
1203 name = name + '%' + self._extrafilterid |
|
1204 |
1200 cls = repoview.newtype(self.unfiltered().__class__) |
1205 cls = repoview.newtype(self.unfiltered().__class__) |
1201 return cls(self, name, visibilityexceptions) |
1206 return cls(self, name, visibilityexceptions) |
1202 |
1207 |
1203 @repofilecache('bookmarks', 'bookmarks.current') |
1208 @repofilecache('bookmarks', 'bookmarks.current') |
1204 def _bookmarks(self): |
1209 def _bookmarks(self): |