[PATCH] test-commit-amend: adapt for Windows after fba17a64fa49
Idan Kamara
idankk86 at gmail.com
Fri Jun 29 08:46:14 CDT 2012
On Fri, Jun 29, 2012 at 4:35 PM, Adrian Buehlmann <adrian at cadifra.com>wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1340976095 -7200
> # Node ID 69fa0459dd3b5fc8f7a4e1c5ca632fd7c8788c00
> # Parent fba17a64fa4978bfea19222da5e64a18cfddeecd
> test-commit-amend: adapt for Windows after fba17a64fa49
>
> diff --git a/tests/test-commit-amend.t b/tests/test-commit-amend.t
> --- a/tests/test-commit-amend.t
> +++ b/tests/test-commit-amend.t
> @@ -23,8 +23,10 @@
> nothing changed
> [1]
>
> - $ echo '[hooks]' >> $HGRCPATH
> - $ echo 'pretxncommit.foo = echo "pretxncommit $HG_NODE"; hg id -r
> $HG_NODE' >> $HGRCPATH
> + $ cat >> $HGRCPATH <<EOF
> + > [hooks]
> + > pretxncommit.foo = sh -c "echo \"pretxncommit \$HG_NODE\"; hg id -r
> \$HG_NODE"
> + > EOF
>
> Amending changeset with changes in working dir:
>
> @@ -32,7 +34,7 @@
> $ hg ci --amend -m 'amend base1'
> pretxncommit 9cd25b479c51be2f4ed2c38e7abdf7ce67d8e0dc
> 9cd25b479c51 tip
> - saved backup bundle to
> $TESTTMP/.hg/strip-backup/489edb5b847d-amend-backup.hg
> + saved backup bundle to
> $TESTTMP/.hg/strip-backup/489edb5b847d-amend-backup.hg (glob)
>
Doesn't look like anything is globbed here.
> $ echo 'pretxncommit.foo = ' >> $HGRCPATH
> $ hg diff -c .
> diff -r ad120869acf0 -r 9cd25b479c51 a
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120629/de198ac1/attachment.html>
More information about the Mercurial-devel
mailing list