changeset 17060:69fa0459dd3b

test-commit-amend: adapt for Windows after fba17a64fa49
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 29 Jun 2012 15:21:35 +0200
parents fba17a64fa49
children f20e4d76b711
files tests/test-commit-amend.t
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-commit-amend.t	Fri Jun 29 00:40:52 2012 -0500
+++ b/tests/test-commit-amend.t	Fri Jun 29 15:21:35 2012 +0200
@@ -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)
   $ echo 'pretxncommit.foo = ' >> $HGRCPATH
   $ hg diff -c .
   diff -r ad120869acf0 -r 9cd25b479c51 a