##// END OF EJS Templates
vfs: use 'vfs' module directly in 'mercurial.subrepo'...
Pierre-Yves David -
r31236:8a0687a2 default
parent child Browse files
Show More
@@ -35,6 +35,7 b' from . import ('
35 pycompat,
35 pycompat,
36 scmutil,
36 scmutil,
37 util,
37 util,
38 vfs as vfsmod,
38 )
39 )
39
40
40 hg = None
41 hg = None
@@ -615,7 +616,7 b' class abstractsubrepo(object):'
615 def wvfs(self):
616 def wvfs(self):
616 """return vfs to access the working directory of this subrepository
617 """return vfs to access the working directory of this subrepository
617 """
618 """
618 return scmutil.vfs(self._ctx.repo().wvfs.join(self._path))
619 return vfsmod.vfs(self._ctx.repo().wvfs.join(self._path))
619
620
620 @propertycache
621 @propertycache
621 def _relpath(self):
622 def _relpath(self):
@@ -677,7 +678,7 b' class hgsubrepo(abstractsubrepo):'
677
678
678 @propertycache
679 @propertycache
679 def _cachestorehashvfs(self):
680 def _cachestorehashvfs(self):
680 return scmutil.vfs(self._repo.join('cache/storehash'))
681 return vfsmod.vfs(self._repo.join('cache/storehash'))
681
682
682 def _readstorehashcache(self, remotepath):
683 def _readstorehashcache(self, remotepath):
683 '''read the store hash cache for a given remote repository'''
684 '''read the store hash cache for a given remote repository'''
General Comments 0
You need to be logged in to leave comments. Login now