changeset 714:78266f6904df

logging, date format changed
author eugene.petrenko@jetbrains.com
date Mon, 13 Jan 2014 15:35:44 +0100
parents 41013464149f
children be86907926ae
files mercurial-common/src/python/load-substates-command.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-common/src/python/load-substates-command.py	Mon Jan 13 15:25:54 2014 +0100
+++ b/mercurial-common/src/python/load-substates-command.py	Mon Jan 13 15:35:44 2014 +0100
@@ -41,7 +41,7 @@
       return base64.b64encode( x )
 
     def fetch_commits():
-      ui.write("Iterating over commits graph...")
+      ui.write("Iterating over commits...\n")
       with open(outputFile + ".commits", "w", 5 * 1024 * 1024) as result:
         result.write("format: prefix commitID commitHash num_parents parent branch num_tags tag user message date [.hgsub]\n")
         result.flush()
@@ -77,17 +77,19 @@
           result.write( b64( node.description() ) )
 
           result.write(" ")                                 # date
-          result.write( util.datestr( node.date(), "%Y-%m-%dZ%H:%M:%ST%1:%2") )
+          result.write( util.datestr( node.date(), "%Y-%m-%dZ%H:%M:%ST%1%2") )
 
           if ".hgsub" in node.files() or ".hgsubstate" in node.files():
             result.write(" .hgsub")
+          else:
+            result.write(" =====")
 
           result.write("\n")
 
         ui.write("Commits iteration completed")
 
     def fetch_file_revisions(filename):
-      ui.write("All revisions of file " + filename + " are fetched\n")
+      ui.write("Fetching revisions of " + filename + " file\n")
       with open(outputFile + filename, "w", 5 * 1024 * 1024) as result:
         result.write("format: prefix commitID base64(" + filename + ")\n")
         result.flush()