Mercurial > hg-stable
changeset 47419:5e44936b82be
revlog: fix a typo closing the wrong file
Caught by pytype as possibly being None, but the file is closed in the previous
conditional.
Differential Revision: https://phab.mercurial-scm.org/D10874
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 12 Jun 2021 00:50:03 -0400 |
parents | c887bab2dccf |
children | 5fbac82a8780 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Jun 11 23:57:14 2021 -0400 +++ b/mercurial/revlog.py Sat Jun 12 00:50:03 2021 -0400 @@ -2243,7 +2243,7 @@ if dfh is not None: dfh.close() if sdfh is not None: - dfh.close() + sdfh.close() # closing the index file last to avoid exposing referent to # potential unflushed data content. if ifh is not None: