# HG changeset patch # User Jun Wu # Date 2017-03-09 23:10:27 # Node ID 052bc876a87929b4fb9141a50de59d7f2fdb93ea # Parent 1c97a91a18dccc095f9ec1bdbe81da16c6b1e558 localrepo: rename proxycls to filteredrepo When debugging in a Python shell, the type of "repo" is "proxycls", which could confuse new people. In [1]: repo Out[1]: Let's rename it to "filteredrepo" to make it clearer. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -484,9 +484,9 @@ class localrepository(object): """Return a filtered version of a repository""" # build a new class with the mixin and the current class # (possibly subclass of the repo) - class proxycls(repoview.repoview, self.unfiltered().__class__): + class filteredrepo(repoview.repoview, self.unfiltered().__class__): pass - return proxycls(self, name) + return filteredrepo(self, name) @repofilecache('bookmarks', 'bookmarks.current') def _bookmarks(self):