[PATCH 2 of 2] contrib: explicitly enable perf extension for revset tests

David Soria Parra davidsp at fb.com
Tue Mar 25 20:46:08 CDT 2014


Olle Lundberg <olle.lundberg at gmail.com> writes:

> # HG changeset patch
> # User Olle Lundberg <geek at nerd.sh>
> # Date 1395785415 -3600
> #      Tue Mar 25 23:10:15 2014 +0100
> # Node ID 70f6451218676456ac47fa3b75fbcef37fabf96d
> # Parent  5c9e0e96192c55a6cd4e468b0f72f8f4d339c82e
> contrib: explicitly enable perf extension for revset tests
>
> If a developer doesn't have the perf extension enabled the revset
> benchmarking will fail. This patch explicitly enables the
> perf extension when running the tests.
>
> diff --git a/contrib/revsetbenchmarks.sh b/contrib/revsetbenchmarks.sh
> --- a/contrib/revsetbenchmarks.sh
> +++ b/contrib/revsetbenchmarks.sh
> @@ -12,12 +12,12 @@
>  #
>  # This script also does one run of the current version of mercurial installed
>  # to compare performance.
>  
>  HG="hg update"
> -PERF="./hg perfrevset"
> -BASE_PERF="hg perfrevset"
> +PERF="./hg --config extensions.perf=contrib/perf.py perfrevset"
> +BASE_PERF="hg --config extensions.perf=contrib/perf.py perfrevset"

This looks good. Thank you, queued to default.


More information about the Mercurial-devel mailing list