repoview: backout ced3ecfc2e57
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 17 Dec 2014 12:21:07 -0800
changeset 23636 ab3b8d8fd2a0
parent 23635 faec11cfb645
child 23637 13f53a2aa342
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.
mercurial/repoview.py
--- 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):