Show More
@@ -1179,7 +1179,17 b' class localrepository(object):' | |||
|
1179 | 1179 | return self |
|
1180 | 1180 | |
|
1181 | 1181 | def filtered(self, name, visibilityexceptions=None): |
|
1182 |
"""Return a filtered version of a repository |
|
|
1182 | """Return a filtered version of a repository | |
|
1183 | ||
|
1184 | The `name` parameter is the identifier of the requested view. This | |
|
1185 | will return a repoview object set "exactly" to the specified view. | |
|
1186 | ||
|
1187 | This function does not apply recursive filtering to a repository. For | |
|
1188 | example calling `repo.filtered("served")` will return a repoview using | |
|
1189 | the "served" view, regardless of the initial view used by `repo`. | |
|
1190 | ||
|
1191 | In other word, there is always only one level of `repoview` "filtering". | |
|
1192 | """ | |
|
1183 | 1193 | cls = repoview.newtype(self.unfiltered().__class__) |
|
1184 | 1194 | return cls(self, name, visibilityexceptions) |
|
1185 | 1195 |
General Comments 0
You need to be logged in to leave comments.
Login now