contrib/revsetbenchmarks.py
changeset 25642 5265932aad83
parent 25607 ddb2a648fdbd
child 25646 57e7a060a06f
equal deleted inserted replaced
25641:c0bdfe87b245 25642:5265932aad83
   244 revsetsfile = sys.stdin
   244 revsetsfile = sys.stdin
   245 if options.file:
   245 if options.file:
   246     revsetsfile = open(options.file)
   246     revsetsfile = open(options.file)
   247 
   247 
   248 revsets = [l.strip() for l in revsetsfile if not l.startswith('#')]
   248 revsets = [l.strip() for l in revsetsfile if not l.startswith('#')]
       
   249 revsets = [l for l in revsets if l]
   249 
   250 
   250 print "Revsets to benchmark"
   251 print "Revsets to benchmark"
   251 print "----------------------------"
   252 print "----------------------------"
   252 
   253 
   253 for idx, rset in enumerate(revsets):
   254 for idx, rset in enumerate(revsets):