# HG changeset patch # User Martin von Zweigbergk # Date 2017-07-11 18:21:04 # Node ID 1bb209d08a34d4de623e5b7d7ccc63e84ba77232 # Parent 26e4ba058215e536d3827befbea99ff6203d35f8 py3: make localrepo filtered repo cache work on py3 I don't know if this is the right fix, but it makes test-py3-commands.t pass again. Differential Revision: https://phab.mercurial-scm.org/D56 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -553,7 +553,7 @@ class localrepository(object): # class of this repo. Give it a name containing the # filter name to aid debugging. bases = (repoview.repoview, key) - cls = type('%sfilteredrepo' % name, bases, {}) + cls = type(r'%sfilteredrepo' % name, bases, {}) self._filteredrepotypes[key] = cls return self._filteredrepotypes[key](self, name)