##// END OF EJS Templates
subrepo: ensure "lock.release()" execution at the end of "_cachestorehash()"...
FUJIWARA Katsunori -
r21886:b9e8fdc3 default
parent child Browse files
Show More
@@ -586,6 +586,7 b' class hgsubrepo(abstractsubrepo):'
586 '''
586 '''
587 cachefile = self._getstorehashcachepath(remotepath)
587 cachefile = self._getstorehashcachepath(remotepath)
588 lock = self._repo.lock()
588 lock = self._repo.lock()
589 try:
589 storehash = list(self._calcstorehash(remotepath))
590 storehash = list(self._calcstorehash(remotepath))
590 cachedir = os.path.dirname(cachefile)
591 cachedir = os.path.dirname(cachefile)
591 if not os.path.exists(cachedir):
592 if not os.path.exists(cachedir):
@@ -593,6 +594,7 b' class hgsubrepo(abstractsubrepo):'
593 fd = open(cachefile, 'w')
594 fd = open(cachefile, 'w')
594 fd.writelines(storehash)
595 fd.writelines(storehash)
595 fd.close()
596 fd.close()
597 finally:
596 lock.release()
598 lock.release()
597
599
598 @annotatesubrepoerror
600 @annotatesubrepoerror
General Comments 0
You need to be logged in to leave comments. Login now