view tests/test-diffstat @ 10301:56b50194617f

templates: rename `Last change' column in hgwebdir repository list. This patch changes column headers in the templates that previously said `Last change' to `Last modified'. Neither code nor functionality are changed other than that. For some time now, I have been annoyed by the fact the `Last change' column didn't list the age of the youngest changeset in the repository, or at least tip. It just occurred to me that this is because the wording is slightly misleading; what the column in fact lists is when the repository was last *modified*, that is, when changesets was last added or removed from it. The word `change' can be understood as referring to the changeset itself. Using `changed' would be ever so slightly less amigous. However, the standard nomenclature in this case is `modification date' and `Last modified', which is incidentally entirely unambigous. Hence, `Last modified' is the wording used.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 24 Jan 2010 20:51:53 +0100
parents 99a2096c3d8d
children
line wrap: on
line source

#!/bin/sh

hg init repo
cd repo
i=0; while [ "$i" -lt 213 ]; do echo a >> a; i=`expr $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 '\0' > b
hg add b

echo '% binary diffstat'
hg diff --stat

echo '% binary git diffstat'
hg diff --stat --git