Show More
@@ -6,6 +6,7 b'' | |||||
6 | # This software may be used and distributed according to the terms of the |
|
6 | # This software may be used and distributed according to the terms of the | |
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 |
|
8 | |||
|
9 | import types | |||
9 | import copy |
|
10 | import copy | |
10 | import error |
|
11 | import error | |
11 | import phases |
|
12 | import phases | |
@@ -310,6 +311,10 b' class repoview(object):' | |||||
310 | return getattr(self._unfilteredrepo, attr) |
|
311 | return getattr(self._unfilteredrepo, attr) | |
311 |
|
312 | |||
312 | def __setattr__(self, attr, value): |
|
313 | def __setattr__(self, attr, value): | |
|
314 | # Allow method replacement on filtered repos, like status() in | |||
|
315 | # largefiles' purge override | |||
|
316 | if type(value) == types.FunctionType: | |||
|
317 | object.__setattr__(self, attr, value) | |||
313 | return setattr(self._unfilteredrepo, attr, value) |
|
318 | return setattr(self._unfilteredrepo, attr, value) | |
314 |
|
319 | |||
315 | def __delattr__(self, attr): |
|
320 | def __delattr__(self, attr): |
General Comments 0
You need to be logged in to leave comments.
Login now