comparison mercurial/subrepo.py @ 23373:99a886418000

subrepo: remove "_getstorehashcachepath" referred by no other code paths
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 19 Nov 2014 18:35:14 +0900
parents 6cfa7a73b6e7
children 2d86f4e38c08
comparison
equal deleted inserted replaced
23372:6cfa7a73b6e7 23373:99a886418000
559 vfs = self._repo.vfs 559 vfs = self._repo.vfs
560 for relname in filelist: 560 for relname in filelist:
561 filehash = util.sha1(vfs.tryread(relname)).hexdigest() 561 filehash = util.sha1(vfs.tryread(relname)).hexdigest()
562 yield '%s = %s\n' % (relname, filehash) 562 yield '%s = %s\n' % (relname, filehash)
563 563
564 def _getstorehashcachepath(self, remotepath):
565 '''get a unique path for the store hash cache'''
566 return self._repo.join(os.path.join(
567 'cache', 'storehash', _getstorehashcachename(remotepath)))
568
569 @propertycache 564 @propertycache
570 def _cachestorehashvfs(self): 565 def _cachestorehashvfs(self):
571 return scmutil.vfs(self._repo.join('cache/storehash')) 566 return scmutil.vfs(self._repo.join('cache/storehash'))
572 567
573 def _readstorehashcache(self, remotepath): 568 def _readstorehashcache(self, remotepath):