##// 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,8 +596,10 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 fd.writelines(storehash)
599 try:
600 fd.close()
600 fd.writelines(storehash)
601 finally:
602 fd.close()
601 finally:
603 finally:
602 lock.release()
604 lock.release()
603
605
General Comments 0
You need to be logged in to leave comments. Login now