# HG changeset patch # User Yuya Nishihara # Date 1512478608 -32400 # Node ID d4ad9d695a9e453b2ccd622207d14bca80550457 # Parent c752fbe228fb5fb5338b4b90efcfed7c2046ef7b repoview: include filter name in repr for debugging diff -r c752fbe228fb -r d4ad9d695a9e mercurial/repoview.py --- a/mercurial/repoview.py Tue Dec 05 21:50:33 2017 +0900 +++ b/mercurial/repoview.py Tue Dec 05 21:56:48 2017 +0900 @@ -15,6 +15,7 @@ from . import ( obsolete, phases, + pycompat, tags as tagsmod, ) @@ -232,6 +233,11 @@ return self return self.unfiltered().filtered(name) + def __repr__(self): + return r'<%s:%s %r>' % (self.__class__.__name__, + pycompat.sysstr(self.filtername), + self.unfiltered()) + # everything access are forwarded to the proxied repo def __getattr__(self, attr): return getattr(self._unfilteredrepo, attr)