Mercurial > hg
view tests/test-branchmap @ 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 | 7bb004fc14ec |
children |
line wrap: on
line source
#!/bin/sh hgserve() { hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -E errors.log -v $@ \ | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//' cat hg.pid >> "$DAEMON_PIDS" } hg init a hg --encoding utf-8 -R a branch æ echo foo > a/foo hg -R a ci -Am foo hgserve -R a --config web.push_ssl=False --config web.allow_push=* --encoding latin1 hg --encoding utf-8 clone http://localhost:$HGPORT1 b hg --encoding utf-8 -R b log echo bar >> b/foo hg -R b ci -m bar hg --encoding utf-8 -R b push | sed "s/$HGPORT1/PORT/" hg -R a --encoding utf-8 log kill `cat hg.pid` # verify 7e7d56fe4833 (encoding fallback in branchmap to maintain compatibility with 1.3.x) cat <<EOF > oldhg import sys from mercurial import ui, hg, commands class StdoutWrapper(object): def __init__(self, stdout): self._file = stdout def write(self, data): if data == '47\n': # latin1 encoding is one %xx (3 bytes) shorter data = '44\n' elif data.startswith('%C3%A6 '): # translate to latin1 encoding data = '%%E6 %s' % data[7:] self._file.write(data) def __getattr__(self, name): return getattr(self._file, name) sys.stdout = StdoutWrapper(sys.stdout) sys.stderr = StdoutWrapper(sys.stderr) myui = ui.ui() repo = hg.repository(myui, 'a') commands.serve(myui, repo, stdio=True) EOF echo baz >> b/foo hg -R b ci -m baz hg push -R b -e 'python oldhg' ssh://dummy/ --encoding latin1