# HG changeset patch # User Raphaël Gomès <rgomes@octobus.net> # Date 1740579698 18000 # Wed Feb 26 09:21:38 2025 -0500 # Node ID 9dd5c37d318bc8c80bc7c08ef5457802ea582af6 # Parent 8a83a1249a5c3424aff8715459377d429cadaa29 hg: use `-r` instead of `--rev` in certain benchmarks Unfortunately, there is a bug in `rhg files` that went unnoticed until now, where it expects the long flag `--revision` instead of `--rev`. Since Poulpe cares about maximizing compatibility, we use the short flag. diff --git a/suites/hg/benchmarks/cat.pbd b/suites/hg/benchmarks/cat.pbd --- a/suites/hg/benchmarks/cat.pbd +++ b/suites/hg/benchmarks/cat.pbd @@ -23,13 +23,13 @@ cwd = "DATA-VARS:mercurial.main-repo-path" [simple-command.variants.dimensions.rev.working-copy.environment] -REV = "--rev wdir()" +REV = "-r wdir()" [simple-command.variants.dimensions.rev.tip] default = true [simple-command.variants.dimensions.rev.tip.environment] -REV = "--rev tip" +REV = "-r tip" [simple-command.variants.dimensions.rev.default.environment] REV = "" diff --git a/suites/hg/benchmarks/files.pbd b/suites/hg/benchmarks/files.pbd --- a/suites/hg/benchmarks/files.pbd +++ b/suites/hg/benchmarks/files.pbd @@ -26,7 +26,7 @@ REV = "" [simple-command.variants.dimensions.rev.tip.environment] -REV = "--rev tip" +REV = "-r tip" [simple-command.variants.dimensions.rev.default] default = true diff --git a/suites/hg/benchmarks/lib/variants.pkl b/suites/hg/benchmarks/lib/variants.pkl --- a/suites/hg/benchmarks/lib/variants.pkl +++ b/suites/hg/benchmarks/lib/variants.pkl @@ -139,12 +139,12 @@ cases { ["working-copy"]{ environment { - ["REV"] = "--rev wdir()" + ["REV"] = "-r wdir()" } } ["tip"]{ environment { - ["REV"] = "--rev tip" + ["REV"] = "-r tip" } } ["default"]{