changeset 6397:e1402cf5e08a

convert: avoid svn log retrieval process cleanup With huge history (like kdelibs), the process termination suddenly consumes a lot of memory (from 700M to 1.3G+). Since the job is done, clean termination is not required, just exit.
author Patrick Mezard <pmezard@gmail.com>
date Sat, 29 Mar 2008 17:14:53 +0100
parents 18eeabae6148
children 0e91ef0b52e7
files hgext/convert/subversion.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Sat Mar 29 17:14:47 2008 +0100
+++ b/hgext/convert/subversion.py	Sat Mar 29 17:14:53 2008 +0100
@@ -95,6 +95,10 @@
     else:
         pickle.dump(None, fp, protocol)
     fp.close()
+    # 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.
+    os._exit(0)
 
 def debugsvnlog(ui, **opts):
     """Fetch SVN log in a subprocess and channel them back to parent to