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