view tests/test-hgweb-filelog @ 12083:ebfc46929f3e stable

help: refer to user configuration file more consistently Currently, a number of commands and help topics mention the user hgrc file in different ways. Among these are following: 1. .hgrc - "please specify your commit editor/username in your .hgrc file", bookmarks, color, hgk, pager, hg help environment 2. $HOME/.hgrc - hg help paths, hgrc(5), hg(1) 3. ~/.hgrc - hgrc(5) In addition to being inconsistent, none of these make sense on Windows. This patch replaces the above with a more general term of "[your] configuration file".
author Brodie Rao <brodie@bitheap.org>
date Fri, 27 Aug 2010 22:36:35 -0400
parents cb93eee1fbcd
children
line wrap: on
line source

#!/bin/sh

hg init test
cd test

echo b > b
hg ci -Am "b"

echo a > a
hg ci -Am "first a"

hg rm a
hg ci -m "del a"

echo b > a
hg ci -Am "second a"

hg rm a
hg ci -m "del2 a"

hg mv b c
hg ci -m "mv b"

echo c >> c
hg ci -m "change c"

hg log -p

hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
cat hg.pid >> $DAEMON_PIDS

echo % tip - two revisions
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a')

echo % second version - two revisions
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a')

echo % first deleted - one revision
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a')

echo % first version - one revision
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a')

echo % before addition - error
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a')

echo % should show base link, use spartan because it shows it
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan')

echo % errors
cat errors.log