revsetbenchmarks: also display tag when printing a revision
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 10 Jun 2015 17:33:57 -0700
changeset 25546 59cdf631388b
parent 25545 34d8d4930c88
child 25547 99a1f73af85b
revsetbenchmarks: also display tag when printing a revision This is usually more useful information than the commit message.
contrib/revsetbenchmarks.py
--- 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):