Mercurial > public > mercurial-scm > hg
diff tests/test-convert-mtn.t @ 17449:3d1b64bc8150
test-convert-mtn.t: use #if to set mtndir to the correct value
Monotone store directory name is not the same on Windows and Unix.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 03 Aug 2012 17:26:30 +0200 |
parents | 5b98d7416a32 |
children | 9c362a497eae |
line wrap: on
line diff
--- a/tests/test-convert-mtn.t Fri Aug 03 17:56:34 2012 +0200 +++ b/tests/test-convert-mtn.t Fri Aug 03 17:26:30 2012 +0200 @@ -2,9 +2,18 @@ $ "$TESTDIR/hghave" mtn || exit 80 Monotone directory is called .monotone on *nix and monotone -on Windows. Having a variable here ease test patching. +on Windows. + +#if windows + + $ mtndir=monotone + +#else $ mtndir=.monotone + +#endif + $ echo "[extensions]" >> $HGRCPATH $ echo "convert=" >> $HGRCPATH $ echo 'graphlog =' >> $HGRCPATH