diff 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
line wrap: on
line diff
--- a/contrib/revsetbenchmarks.py	Mon Oct 27 13:40:12 2014 +0100
+++ b/contrib/revsetbenchmarks.py	Wed Jun 10 17:33:57 2015 -0700
@@ -90,6 +90,7 @@
     sys.stdout.write("Revision ")
     sys.stdout.flush()
     check_call(['hg', 'log', '--rev', str(rev), '--template',
+                '{if(tags, " ({tags})")} '
                 '{rev}:{node|short}: {desc|firstline}\n'])
 
 def idxwidth(nbidx):