repoview: backout
ced3ecfc2e57
Monkey patching repoview does not really work and making it really work will
be really hard. So we better have it broken without complexity than broken with
extra complexity.
--- a/mercurial/repoview.py Wed Dec 17 12:19:33 2014 -0800
+++ b/mercurial/repoview.py Wed Dec 17 12:21:07 2014 -0800
@@ -6,7 +6,6 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-import types
import copy
import error
import phases
@@ -311,10 +310,6 @@
return getattr(self._unfilteredrepo, attr)
def __setattr__(self, attr, value):
- # Allow method replacement on filtered repos, like status() in
- # largefiles' purge override
- if type(value) == types.FunctionType:
- object.__setattr__(self, attr, value)
return setattr(self._unfilteredrepo, attr, value)
def __delattr__(self, attr):