Skip to content
Snippets Groups Projects
Commit cde8f975 authored by Boris Feld's avatar Boris Feld
Browse files

Uses kwargs in revset benchmarks too

parent df561b98
No related branches found
No related tags found
No related merge requests found
import string
from .utils import BaseTestSuite
from .utils import BaseTestSuite, params_as_kwargs
VARIANTS = ["plain", "first", "last", "sort", "sort+first", "sort+last"]
def create_revset_benchmark(baseset):
......@@ -4,9 +4,11 @@
VARIANTS = ["plain", "first", "last", "sort", "sort+first", "sort+last"]
def create_revset_benchmark(baseset):
def f(self, repo, variant, *args, **kwargs):
@params_as_kwargs
def f(self, repo, variant, **kwargs):
revset = baseset
if variant != "plain":
for var in variant.split("+"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment