[PATCH 1 of 2] testlib: move the prune alias into a shell script for Windows
Yuya Nishihara
yuya at tcha.org
Sun Apr 16 07:00:18 EDT 2017
On Sun, 16 Apr 2017 01:36:16 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1492316978 14400
> # Sun Apr 16 00:29:38 2017 -0400
> # Node ID 01b8058372c5e1344ed5a83ce5968c2ce6906157
> # Parent 4c2c30bc38b4f84ce8f215146bbf158e299065b3
> testlib: move the prune alias into a shell script for Windows
Seems fine. Queued, thanks.
> diff --git a/tests/testlib/exchange-obsmarker-util.sh b/tests/testlib/exchange-obsmarker-util.sh
> --- a/tests/testlib/exchange-obsmarker-util.sh
> +++ b/tests/testlib/exchange-obsmarker-util.sh
> @@ -1,6 +1,14 @@
> #!/bin/sh
> # setup config and various utility to test obsolescence marker exchanges tests
>
> +
> +cat >> $TESTTMP/prune.sh << EOF
You could use << 'EOF' to disable variable expansion.
> +rev=\`hg log --hidden --template '{node}\n' --rev "\$3"\`
> +
> +hg debugobsolete --record-parents \$1 "\$2" \$rev \
> + && hg up --quiet 'max((::.) - obsolete())'
> +EOF
More information about the Mercurial-devel
mailing list