[PATCH 1 of 2] test-convert: disable autocrlf for git

Mads Kiilerich mads at kiilerich.com
Fri Jun 8 16:39:59 CDT 2012


alexandrul.ct at gmail.com wrote, On 06/08/2012 05:23 PM:
> # HG changeset patch
> # User Eduard-Cristian Stefan <alexandrul.ct at gmail.com>
> # Date 1339122688 -10800
> # Node ID b52a0e4efa04b7859f56c4e74b158e1563d08ae5
> # Parent  2255950e1f7663a9faa6b57040cc5c0debe7d4dd
> test-convert: disable autocrlf for git

Why?

What problem will this solve and why is this a good solution that 
doesn't hide any real problem?

Will it make the test pass on windows? With which git 'version' and 
setup (cmd wrapper?)?

> diff --git a/tests/test-convert-git.t b/tests/test-convert-git.t
> --- a/tests/test-convert-git.t
> +++ b/tests/test-convert-git.t
> @@ -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
> diff --git a/tests/test-convert-tagsbranch-topology.t b/tests/test-convert-tagsbranch-topology.t
> --- a/tests/test-convert-tagsbranch-topology.t
> +++ b/tests/test-convert-tagsbranch-topology.t
> @@ -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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list