[Differential] [Request, 2 lines] D56: py3: make localrepo filtered repo cache work on py3

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Jul 12 00:01:20 UTC 2017


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.

REVISION SUMMARY
  I don't know if this is the right fix, but it makes
  test-py3-commands.t pass again.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D56

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

Index: mercurial/localrepo.py
===================================================================
--- mercurial/localrepo.py
+++ mercurial/localrepo.py
@@ -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)


EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz
Cc: mercurial-devel, indygreg


More information about the Mercurial-devel mailing list