##// END OF EJS Templates
subrepo: ensure "close()" execution at the end of "_cachestorehash()"...
FUJIWARA Katsunori -
r21889:ee7e8dcf default
parent child Browse files
Show More
@@ -596,7 +596,9 b' class hgsubrepo(abstractsubrepo):'
596 if not os.path.exists(cachedir):
596 if not os.path.exists(cachedir):
597 util.makedirs(cachedir, notindexed=True)
597 util.makedirs(cachedir, notindexed=True)
598 fd = open(cachefile, 'w')
598 fd = open(cachefile, 'w')
599 try:
599 fd.writelines(storehash)
600 fd.writelines(storehash)
601 finally:
600 fd.close()
602 fd.close()
601 finally:
603 finally:
602 lock.release()
604 lock.release()
General Comments 0
You need to be logged in to leave comments. Login now