Mercurial > public > mercurial-scm > hg-stable
diff contrib/revsetbenchmarks.py @ 22556:480a24ad9f77
revsetbenchmark: allow comments ('#' prefix) in the revset input
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 23 Sep 2014 17:09:19 -0700 |
parents | 2143d794e960 |
children | e53f6b72a0e4 |
line wrap: on
line diff
--- a/contrib/revsetbenchmarks.py Tue Sep 23 17:08:49 2014 -0700 +++ b/contrib/revsetbenchmarks.py Tue Sep 23 17:09:19 2014 -0700 @@ -94,7 +94,7 @@ if options.file: revsetsfile = open(options.file) -revsets = [l.strip() for l in revsetsfile] +revsets = [l.strip() for l in revsetsfile if not l.startswith('#')] print "Revsets to benchmark" print "----------------------------"