comparison contrib/revsetbenchmarks.py @ 25546:59cdf631388b

revsetbenchmarks: also display tag when printing a revision This is usually more useful information than the commit message.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 10 Jun 2015 17:33:57 -0700
parents e66f1707ba6c
children ddb2a648fdbd
comparison
equal deleted inserted replaced
25545:34d8d4930c88 25546:59cdf631388b
88 def printrevision(rev): 88 def printrevision(rev):
89 """print data about a revision""" 89 """print data about a revision"""
90 sys.stdout.write("Revision ") 90 sys.stdout.write("Revision ")
91 sys.stdout.flush() 91 sys.stdout.flush()
92 check_call(['hg', 'log', '--rev', str(rev), '--template', 92 check_call(['hg', 'log', '--rev', str(rev), '--template',
93 '{if(tags, " ({tags})")} '
93 '{rev}:{node|short}: {desc|firstline}\n']) 94 '{rev}:{node|short}: {desc|firstline}\n'])
94 95
95 def idxwidth(nbidx): 96 def idxwidth(nbidx):
96 """return the max width of number used for index 97 """return the max width of number used for index
97 98