[PATCH 10 of 10] Prettier output

Edouard Gomez ed.gomez at free.fr
Sun Dec 17 15:31:56 UTC 2006


# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1166365520 -3600
# Node ID be6997ec0cb75ccdb1c5042d014fdc7bfed7a13a
# Parent  e3815235f5190a0bc03e92814ba6c157ba82efb3
Prettier output

Change a bit the output of the script. It now prints
 branch: cvsps:# hg:node p1:parentnode

diff -r e3815235f519 -r be6997ec0cb7 hg-cvs-import
--- a/hg-cvs-import	Sun Dec 17 15:25:20 2006 +0100
+++ b/hg-cvs-import	Sun Dec 17 15:25:20 2006 +0100
@@ -259,7 +259,7 @@ def addrev(branch, tag, r, user, date, l
         n = repo.changelog.tip()
         map[int(r)] = hg.hex(n)
         mapf.write("%d %s\n" % (r, hg.hex(n)))
-        print "%s: added patch %d %s (%s)" % (branch, r, hg.hex(n), node)
+        print "%8s: cvsps:%d hg:%s p1:%s" % (branch, r, hg.short(n), hg.short(hg.bin(node)))
     lastbranch = branch
     lastrev = hg.hex(n)
     if tag != None:



More information about the Mercurial-devel mailing list