contrib/revsetbenchmarks.py
changeset 25546 59cdf631388b
parent 25544 e66f1707ba6c
child 25607 ddb2a648fdbd
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