Show More
@@ -566,9 +566,10 b' class hgsubrepo(abstractsubrepo):' | |||||
566 | # sort the files that will be hashed in increasing (likely) file size |
|
566 | # sort the files that will be hashed in increasing (likely) file size | |
567 | filelist = ('bookmarks', 'store/phaseroots', 'store/00changelog.i') |
|
567 | filelist = ('bookmarks', 'store/phaseroots', 'store/00changelog.i') | |
568 | yield '# %s\n' % _expandedabspath(remotepath) |
|
568 | yield '# %s\n' % _expandedabspath(remotepath) | |
|
569 | vfs = self._repo.vfs | |||
569 | for relname in filelist: |
|
570 | for relname in filelist: | |
570 | absname = os.path.normpath(self._repo.join(relname)) |
|
571 | filehash = util.sha1(vfs.tryread(relname)).hexdigest() | |
571 |
yield '%s = %s\n' % (relname, |
|
572 | yield '%s = %s\n' % (relname, filehash) | |
572 |
|
573 | |||
573 | def _getstorehashcachepath(self, remotepath): |
|
574 | def _getstorehashcachepath(self, remotepath): | |
574 | '''get a unique path for the store hash cache''' |
|
575 | '''get a unique path for the store hash cache''' |
General Comments 0
You need to be logged in to leave comments.
Login now