Mercurial > hg-stable
changeset 16962:d2fe9aaedcaf
test-clone-pull-corruption: adapt for Windows
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 15 Jun 2012 18:56:16 +0200 |
parents | cdbb53a640c1 |
children | c19113e842d3 |
files | tests/test-clone-pull-corruption.t |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-clone-pull-corruption.t Fri Jun 15 15:10:19 2012 +0200 +++ b/tests/test-clone-pull-corruption.t Fri Jun 15 18:56:16 2012 +0200 @@ -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...