--- a/tests/test-filecache.py Fri Aug 05 14:25:21 2016 +0200
+++ b/tests/test-filecache.py Wed Mar 08 16:43:16 2017 -0800
@@ -10,25 +10,30 @@
from mercurial import (
extensions,
hg,
- scmutil,
+ localrepo,
ui as uimod,
util,
vfs as vfsmod,
)
-filecache = scmutil.filecache
-
class fakerepo(object):
def __init__(self):
self._filecache = {}
- def join(self, p):
- return p
+ class fakevfs(object):
+
+ def join(self, p):
+ return p
+
+ vfs = fakevfs()
+
+ def unfiltered(self):
+ return self
def sjoin(self, p):
return p
- @filecache('x', 'y')
+ @localrepo.repofilecache('x', 'y')
def cached(self):
print('creating')
return 'string from function'