# HG changeset patch # User Boris Feld # Date 2019-01-14 15:01:17 # Node ID 71ef4e923886b4d711b61c88d0f3f0f9ead20e54 # Parent 774b5195fac61586da950036f90fe03dac829941 revsetbenchmarks: support revset starting with a "-" Before this change, there was no strict separation between arguments and the benchmarked revset. This is easy to fix. diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py --- a/contrib/revsetbenchmarks.py +++ b/contrib/revsetbenchmarks.py @@ -56,9 +56,11 @@ def hg(cmd, repo=None): def perf(revset, target=None, contexts=False): """run benchmark for this very revset""" try: - args = ['perfrevset', revset] + args = ['perfrevset'] if contexts: args.append('--contexts') + args.append('--') + args.append(revset) output = hg(args, repo=target) return parseoutput(output) except subprocess.CalledProcessError as exc: