Mercurial > hg
diff tests/test-diff-color @ 7458:03dd55115985
color: Add tests for colorized diff and status output.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 02 Dec 2008 10:13:52 -0600 |
parents | |
children | c06e7581bbaa |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-diff-color Tue Dec 02 10:13:52 2008 -0600 @@ -0,0 +1,36 @@ +#!/bin/sh + +echo "[extensions]" >> $HGRCPATH +echo "color=" >> $HGRCPATH + +hg init repo +cd repo +cat > a <<EOF +c +c +a +a +b +a +a +c +c +EOF +hg ci -Am adda +cat > a <<EOF +c +c +a +a +dd +a +a +c +c +EOF + +echo '% default context' +hg diff --nodates --color=always + +echo '% --unified=2' +hg diff --nodates -U 2 --color=always \ No newline at end of file