[PATCH 10 of 12] Prettier output
Edouard Gomez
ed.gomez at free.fr
Tue Dec 19 06:05:51 UTC 2006
# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1166511815 -3600
# Node ID 08ce30bd66126628d355090eeefba8990da54a0b
# Parent 56dd51946b9af4af60ede7112542dc96bf8063af
Prettier output
Change a bit the output of the script. It now prints
branch: cvsps:# hg:node p1:parentnode
diff -r 56dd51946b9a -r 08ce30bd6612 hg-cvs-import
--- a/hg-cvs-import Tue Dec 19 08:03:35 2006 +0100
+++ b/hg-cvs-import Tue Dec 19 08:03:35 2006 +0100
@@ -260,7 +260,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 "branch: %-16s cvsps: %-5d 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