changeset 41107 | 3e2c02836420 |
parent 40579 | aca09df32819 |
child 41365 | 876494fd967d |
--- a/mercurial/transaction.py Thu Jan 03 10:13:34 2019 -0800 +++ b/mercurial/transaction.py Sun Dec 23 12:39:20 2018 +0900 @@ -347,9 +347,13 @@ files.append(vfs(name, 'w', atomictemp=True, checkambig=checkambig)) genfunc(*files) + for f in files: + f.close() + # skip discard() loop since we're sure no open file remains + del files[:] finally: for f in files: - f.close() + f.discard() return any @active