# HG changeset patch # User Pierre-Yves David # Date 2015-06-20 11:13:25 # Node ID 5265932aad839b4f010f8307fe4755249d3381e2 # Parent c0bdfe87b2455a30cff28e80441f785da0b9e9e3 revsetbenchmarks: ignore empty lines Before this change, empty lines were seen as an entry and the benchmark tried to run benchmark for "". diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py --- a/contrib/revsetbenchmarks.py +++ b/contrib/revsetbenchmarks.py @@ -246,6 +246,7 @@ if options.file: 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 "----------------------------"