py3: make localrepo filtered repo cache work on py3
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 11 Jul 2017 11:21:04 -0700
changeset 33403 1bb209d08a34
parent 33402 26e4ba058215
child 33404 0d5afd360e9e
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
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Jul 07 10:04:01 2017 +0200
+++ b/mercurial/localrepo.py	Tue Jul 11 11:21:04 2017 -0700
@@ -553,7 +553,7 @@
             # 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)