Mercurial > hg-stable
changeset 23636:ab3b8d8fd2a0
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 17 Dec 2014 12:21:07 -0800 |
parents | faec11cfb645 |
children | 13f53a2aa342 |
files | mercurial/repoview.py |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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):