##// END OF EJS Templates
color: colorize diff --stat
color: colorize diff --stat

File last commit:

r9640:9e76232f default
r9641:9b99f158 default
Show More
test-diffstat
31 lines | 397 B | text/plain | TextLexer
Brodie Rao
diff: add --stat for diffstat output...
r9640 #!/bin/sh
hg init repo
cd repo
i=0; while (( $i < 213 )); do echo a >> a; i=$(($i + 1)); done
hg add a
echo '% wide diffstat'
hg diff --stat
echo '% diffstat width'
COLUMNS=24 hg diff --config ui.interactive=true --stat
hg ci -m adda
cat >> a <<EOF
a
a
a
EOF
echo '% narrow diffstat'
hg diff --stat
hg ci -m appenda
printf '%b' '\x00' > b
hg add b
echo '% binary diffstat'
hg diff --stat