--- a/mercurial/subrepo.py Wed Nov 19 18:35:14 2014 +0900
+++ b/mercurial/subrepo.py Wed Nov 19 18:35:14 2014 +0900
@@ -572,15 +572,8 @@
def _readstorehashcache(self, remotepath):
'''read the store hash cache for a given remote repository'''
- cachefile = self._getstorehashcachepath(remotepath)
- if not os.path.exists(cachefile):
- return ''
- fd = open(cachefile, 'r')
- try:
- pullstate = fd.readlines()
- finally:
- fd.close()
- return pullstate
+ cachefile = _getstorehashcachename(remotepath)
+ return self._cachestorehashvfs.tryreadlines(cachefile, 'r')
def _cachestorehash(self, remotepath):
'''cache the current store hash