Mercurial > hg
comparison tests/test-diffstat.t @ 12147:2b171fe378c0
tests: unify test-diffstat
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 02 Sep 2010 16:29:04 +0200 |
parents | tests/test-diffstat@99a2096c3d8d |
children | 104c9ed93fc5 |
comparison
equal
deleted
inserted
replaced
12144:be9c4131a8f4 | 12147:2b171fe378c0 |
---|---|
1 $ hg init repo | |
2 $ cd repo | |
3 $ i=0; while [ "$i" -lt 213 ]; do echo a >> a; i=`expr $i + 1`; done | |
4 $ hg add a | |
5 | |
6 Wide diffstat: | |
7 | |
8 $ hg diff --stat | |
9 a | 213 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
10 1 files changed, 213 insertions(+), 0 deletions(-) | |
11 | |
12 diffstat width: | |
13 | |
14 $ COLUMNS=24 hg diff --config ui.interactive=true --stat | |
15 a | 213 ++++++++++++++ | |
16 1 files changed, 213 insertions(+), 0 deletions(-) | |
17 | |
18 $ hg ci -m adda | |
19 | |
20 $ cat >> a <<EOF | |
21 > a | |
22 > a | |
23 > a | |
24 > EOF | |
25 | |
26 Narrow diffstat: | |
27 | |
28 $ hg diff --stat | |
29 a | 3 +++ | |
30 1 files changed, 3 insertions(+), 0 deletions(-) | |
31 | |
32 $ hg ci -m appenda | |
33 | |
34 $ printf '\0' > b | |
35 $ hg add b | |
36 | |
37 Binary diffstat: | |
38 | |
39 $ hg diff --stat | |
40 b | 0 | |
41 1 files changed, 0 insertions(+), 0 deletions(-) | |
42 | |
43 Binary git diffstat: | |
44 | |
45 $ hg diff --stat --git | |
46 b | Bin | |
47 1 files changed, 0 insertions(+), 0 deletions(-) | |
48 |