changeset 5775:3f150107984a

mig scripts: announce processing of event-log
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 30 Mar 2011 12:46:08 +0200
parents 79632f998d6e
children 70dfb3dea12d
files MoinMoin/script/migration/_conv160.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160.py	Sun Mar 06 02:57:35 2011 +0100
+++ b/MoinMoin/script/migration/_conv160.py	Wed Mar 30 12:46:08 2011 +0200
@@ -76,6 +76,9 @@
 
     def read(self):
         """ read complete event-log from disk """
+        print "Reading event-log. Depending on the size of event-log this may take a long time and"
+        print "consume lots of memory (if you don't need statistics, truncate event-log to speed this"
+        print "up and use less memory)."
         data = []
         try:
             lineno = 0
@@ -102,6 +105,7 @@
 
     def write(self, fname):
         """ write complete event-log to disk """
+        print "Writing event-log. Depending on the size of event-log this may take a long time."
         if self.data:
             f = file(fname, 'w')
             for timestamp, action, kvdict in self.data: