[PATCH] test-clone-pull-corruption: adapt for Windows
Adrian Buehlmann
adrian at cadifra.com
Fri Jun 15 16:58:59 UTC 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1339779376 -7200
# Node ID 3d94d737595d25394892730b5d096de87ff6bb79
# Parent 2d1a443955d86a9d85e10b27ce056320f45da288
test-clone-pull-corruption: adapt for Windows
diff --git a/tests/test-clone-pull-corruption.t b/tests/test-clone-pull-corruption.t
--- a/tests/test-clone-pull-corruption.t
+++ b/tests/test-clone-pull-corruption.t
@@ -1,5 +1,3 @@
- $ "$TESTDIR/hghave" system-sh || exit 80
-
Corrupt an hg repo with a pull started during an aborted commit
Create two repos, so that one of them can pull from the other one.
@@ -17,8 +15,8 @@
Add a hook to wait 5 seconds and then abort the commit
$ cd ../corrupted
- $ echo '[hooks]' >> .hg/hgrc
- $ echo 'pretxncommit = sleep 5; exit 1' >> .hg/hgrc
+ $ echo "[hooks]" >> .hg/hgrc
+ $ echo "pretxncommit = sh -c 'sleep 5; exit 1'" >> .hg/hgrc
start a commit...
More information about the Mercurial-devel
mailing list