##// END OF EJS Templates
branchmap: close cache file properly...
Yuya Nishihara -
r39173:dd161490 default
parent child Browse files
Show More
@@ -38,6 +38,7 b' def _filename(repo):'
38 38 return filename
39 39
40 40 def read(repo):
41 f = None
41 42 try:
42 43 f = repo.cachevfs(_filename(repo))
43 44 cachekey = next(f).rstrip('\n').split(" ", 2)
@@ -79,6 +80,11 b' def read(repo):'
79 80 msg += ': %s\n'
80 81 repo.ui.debug(msg % pycompat.bytestr(inst))
81 82 partial = None
83
84 finally:
85 if f:
86 f.close()
87
82 88 return partial
83 89
84 90 ### Nearest subset relation
General Comments 0
You need to be logged in to leave comments. Login now