Show More
@@ -572,15 +572,8 b' class hgsubrepo(abstractsubrepo):' | |||||
572 |
|
572 | |||
573 | def _readstorehashcache(self, remotepath): |
|
573 | def _readstorehashcache(self, remotepath): | |
574 | '''read the store hash cache for a given remote repository''' |
|
574 | '''read the store hash cache for a given remote repository''' | |
575 |
cachefile = |
|
575 | cachefile = _getstorehashcachename(remotepath) | |
576 | if not os.path.exists(cachefile): |
|
576 | return self._cachestorehashvfs.tryreadlines(cachefile, 'r') | |
577 | return '' |
|
|||
578 | fd = open(cachefile, 'r') |
|
|||
579 | try: |
|
|||
580 | pullstate = fd.readlines() |
|
|||
581 | finally: |
|
|||
582 | fd.close() |
|
|||
583 | return pullstate |
|
|||
584 |
|
577 | |||
585 | def _cachestorehash(self, remotepath): |
|
578 | def _cachestorehash(self, remotepath): | |
586 | '''cache the current store hash |
|
579 | '''cache the current store hash |
General Comments 0
You need to be logged in to leave comments.
Login now