# HG changeset patch # User eugene.petrenko@jetbrains.com # Date 1389623744 -3600 # Node ID 78266f6904df0923271263774ed9ac2a162ea722 # Parent 41013464149f06942339d3db4ea8aeb08a2bd917 logging, date format changed diff -r 41013464149f -r 78266f6904df mercurial-common/src/python/load-substates-command.py --- 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()