# HG changeset patch # User Pierre-Yves David # Date 1434798805 25200 # 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 -r c0bdfe87b245 -r 5265932aad83 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 "----------------------------"