##// END OF EJS Templates
revsetbenchmarks: improve revision printing...
Pierre-Yves David -
r25538:caff2562 default
parent child Browse files
Show More
@@ -82,10 +82,10 b' def parseoutput(output):'
82
82
83 def printrevision(rev):
83 def printrevision(rev):
84 """print data about a revision"""
84 """print data about a revision"""
85 sys.stdout.write("Revision: ")
85 sys.stdout.write("Revision ")
86 sys.stdout.flush()
86 sys.stdout.flush()
87 check_call(['hg', 'log', '--rev', str(rev), '--template',
87 check_call(['hg', 'log', '--rev', str(rev), '--template',
88 '{desc|firstline}\n'])
88 '{rev}:{node|short}: {desc|firstline}\n'])
89
89
90 def idxwidth(nbidx):
90 def idxwidth(nbidx):
91 """return the max width of number used for index
91 """return the max width of number used for index
@@ -196,7 +196,7 b' Result by revset'
196 ================
196 ================
197 """
197 """
198
198
199 print 'Revision:', revs
199 print 'Revision:'
200 for idx, rev in enumerate(revs):
200 for idx, rev in enumerate(revs):
201 sys.stdout.write('%i) ' % idx)
201 sys.stdout.write('%i) ' % idx)
202 sys.stdout.flush()
202 sys.stdout.flush()
General Comments 0
You need to be logged in to leave comments. Login now