contrib/revsetbenchmarks.py
changeset 25543 36336cc8cfab
parent 25542 6d937c49d935
child 25544 e66f1707ba6c
equal deleted inserted replaced
25542:6d937c49d935 25543:36336cc8cfab
   200 
   200 
   201 
   201 
   202 def applyvariants(revset, variant):
   202 def applyvariants(revset, variant):
   203     if variant == 'plain':
   203     if variant == 'plain':
   204         return revset
   204         return revset
   205     return '%s(%s)' % (variant, revset)
   205     for var in variant.split('+'):
       
   206         revset = '%s(%s)' % (var, revset)
       
   207     return revset
   206 
   208 
   207 
   209 
   208 parser = OptionParser(usage="usage: %prog [options] <revs>")
   210 parser = OptionParser(usage="usage: %prog [options] <revs>")
   209 parser.add_option("-f", "--file",
   211 parser.add_option("-f", "--file",
   210                   help="read revset from FILE (stdin if omitted)",
   212                   help="read revset from FILE (stdin if omitted)",