revsetbenchmarks: ignore empty lines
authorPierre-Yves David <pierre-yves.david@fb.com>
Sat, 20 Jun 2015 04:13:25 -0700
changeset 25642 5265932aad83
parent 25641 c0bdfe87b245
child 25643 6f6c97d29a1e
revsetbenchmarks: ignore empty lines Before this change, empty lines were seen as an entry and the benchmark tried to run benchmark for "".
contrib/revsetbenchmarks.py
--- 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 "----------------------------"