diff -r aa3294027936 -r d697e39f61a6 hgext/convert/subversion.py --- a/hgext/convert/subversion.py Sun Jan 07 11:53:07 2018 +0900 +++ b/hgext/convert/subversion.py Wed Feb 28 16:24:39 2018 +0100 @@ -149,7 +149,7 @@ pickle.dump(str(inst), fp, protocol) else: pickle.dump(None, fp, protocol) - fp.close() + fp.flush() # With large history, cleanup process goes crazy and suddenly # consumes *huge* amount of memory. The output file being closed, # there is no need for clean termination.