##// END OF EJS Templates
transaction: do not overwrite atomic-temp files on error...
Yuya Nishihara -
r41140:3e2c0283 default
parent child Browse files
Show More
@@ -347,9 +347,13 b' class transaction(util.transactional):'
347 files.append(vfs(name, 'w', atomictemp=True,
347 files.append(vfs(name, 'w', atomictemp=True,
348 checkambig=checkambig))
348 checkambig=checkambig))
349 genfunc(*files)
349 genfunc(*files)
350 for f in files:
351 f.close()
352 # skip discard() loop since we're sure no open file remains
353 del files[:]
350 finally:
354 finally:
351 for f in files:
355 for f in files:
352 f.close()
356 f.discard()
353 return any
357 return any
354
358
355 @active
359 @active
General Comments 0
You need to be logged in to leave comments. Login now