changeset 25642:5265932aad83

revsetbenchmarks: ignore empty lines Before this change, empty lines were seen as an entry and the benchmark tried to run benchmark for "".
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 20 Jun 2015 04:13:25 -0700
parents c0bdfe87b245
children 6f6c97d29a1e
files contrib/revsetbenchmarks.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/revsetbenchmarks.py	Sat Jun 20 18:03:38 2015 -0700
+++ b/contrib/revsetbenchmarks.py	Sat Jun 20 04:13:25 2015 -0700
@@ -246,6 +246,7 @@
     revsetsfile = open(options.file)
 
 revsets = [l.strip() for l in revsetsfile if not l.startswith('#')]
+revsets = [l for l in revsets if l]
 
 print "Revsets to benchmark"
 print "----------------------------"