Mercurial > hg-stable
changeset 16892:cfd892b7569f
test-convert: disable autocrlf for git
Git might have autocrlf=true as a global or default setting, especially on
windows. That is not expected in the tests and can cause
+ warning: LF will be replaced by CRLF in d/b.
+ The file will have its original line endings in your working directory.
Explicitly setting it false will make the test pass in some setups - but still
not out of the box.
author | Eduard-Cristian Stefan <alexandrul.ct@gmail.com> |
---|---|
date | Fri, 08 Jun 2012 05:31:28 +0300 |
parents | b0e8afdfa970 |
children | 46ccd44dd65b |
files | tests/test-convert-git.t tests/test-convert-tagsbranch-topology.t |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-convert-git.t Fri Jun 08 15:11:05 2012 +0200 +++ b/tests/test-convert-git.t Fri Jun 08 05:31:28 2012 +0300 @@ -1,5 +1,7 @@ $ "$TESTDIR/hghave" git || exit 80 + $ echo "[core]" >> $HOME/.gitconfig + $ echo "autocrlf = false" >> $HOME/.gitconfig $ echo "[extensions]" >> $HGRCPATH $ echo "convert=" >> $HGRCPATH $ echo 'hgext.graphlog =' >> $HGRCPATH
--- a/tests/test-convert-tagsbranch-topology.t Fri Jun 08 15:11:05 2012 +0200 +++ b/tests/test-convert-tagsbranch-topology.t Fri Jun 08 05:31:28 2012 +0300 @@ -1,5 +1,7 @@ $ "$TESTDIR/hghave" git || exit 80 + $ echo "[core]" >> $HOME/.gitconfig + $ echo "autocrlf = false" >> $HOME/.gitconfig $ echo "[extensions]" >> $HGRCPATH $ echo "convert=" >> $HGRCPATH $ echo 'hgext.graphlog =' >> $HGRCPATH