Show More
@@ -164,7 +164,8 def _addchangeset(ui, rsrc, rdst, ctx, r | |||||
164 | fd = open(path, 'rb') |
|
164 | fd = open(path, 'rb') | |
165 | data = fd.read() |
|
165 | data = fd.read() | |
166 | finally: |
|
166 | finally: | |
167 |
if fd: |
|
167 | if fd: | |
|
168 | fd.close() | |||
168 | return context.memfilectx(f, data, 'l' in fctx.flags(), |
|
169 | return context.memfilectx(f, data, 'l' in fctx.flags(), | |
169 | 'x' in fctx.flags(), renamed) |
|
170 | 'x' in fctx.flags(), renamed) | |
170 | else: |
|
171 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now