comparison 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
comparison
equal deleted inserted replaced
7457:a70fb83cbb9e 7458:03dd55115985
1 #!/bin/sh
2
3 echo "[extensions]" >> $HGRCPATH
4 echo "color=" >> $HGRCPATH
5
6 hg init repo
7 cd repo
8 cat > a <<EOF
9 c
10 c
11 a
12 a
13 b
14 a
15 a
16 c
17 c
18 EOF
19 hg ci -Am adda
20 cat > a <<EOF
21 c
22 c
23 a
24 a
25 dd
26 a
27 a
28 c
29 c
30 EOF
31
32 echo '% default context'
33 hg diff --nodates --color=always
34
35 echo '% --unified=2'
36 hg diff --nodates -U 2 --color=always