# HG changeset patch # User Pierre-Yves David # Date 1418847667 28800 # Node ID ab3b8d8fd2a0489cac3cb8cc8842b605aa312140 # Parent faec11cfb645899b4a1a3e6800a7578600a41f32 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. diff -r faec11cfb645 -r ab3b8d8fd2a0 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):