Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 33403:1bb209d08a34
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 11 Jul 2017 11:21:04 -0700 |
parents | 7e89bd0cfb86 |
children | 9bb4decd43b0 |
comparison
equal
deleted
inserted
replaced
33402:26e4ba058215 | 33403:1bb209d08a34 |
---|---|
551 if key not in self._filteredrepotypes: | 551 if key not in self._filteredrepotypes: |
552 # Build a new type with the repoview mixin and the base | 552 # Build a new type with the repoview mixin and the base |
553 # class of this repo. Give it a name containing the | 553 # class of this repo. Give it a name containing the |
554 # filter name to aid debugging. | 554 # filter name to aid debugging. |
555 bases = (repoview.repoview, key) | 555 bases = (repoview.repoview, key) |
556 cls = type('%sfilteredrepo' % name, bases, {}) | 556 cls = type(r'%sfilteredrepo' % name, bases, {}) |
557 self._filteredrepotypes[key] = cls | 557 self._filteredrepotypes[key] = cls |
558 | 558 |
559 return self._filteredrepotypes[key](self, name) | 559 return self._filteredrepotypes[key](self, name) |
560 | 560 |
561 @repofilecache('bookmarks', 'bookmarks.current') | 561 @repofilecache('bookmarks', 'bookmarks.current') |