$ "$TESTDIR/hghave" serve || exit 80 $ hg init test $ cd test $ echo b > b $ hg ci -Am "b" adding b $ echo a > a $ hg ci -Am "first a" adding a $ hg rm a $ hg ci -m "del a" $ echo b > a $ hg ci -Am "second a" adding 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 changeset: 6:b7682196df1c tag: tip user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: change c diff -r 1a6696706df2 -r b7682196df1c c --- a/c Thu Jan 01 00:00:00 1970 +0000 +++ b/c Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,2 @@ b +c changeset: 5:1a6696706df2 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: mv b diff -r 52e848cdcd88 -r 1a6696706df2 b --- a/b Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -b diff -r 52e848cdcd88 -r 1a6696706df2 c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +b changeset: 4:52e848cdcd88 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: del2 a diff -r 01de2d66a28d -r 52e848cdcd88 a --- a/a Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -b changeset: 3:01de2d66a28d user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: second a diff -r be3ebcc91739 -r 01de2d66a28d a --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/a Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +b changeset: 2:be3ebcc91739 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: del a diff -r 5ed941583260 -r be3ebcc91739 a --- a/a Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -a changeset: 1:5ed941583260 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: first a diff -r 6563da9dcf87 -r 5ed941583260 a --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/a Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +a changeset: 0:6563da9dcf87 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: b diff -r 000000000000 -r 6563da9dcf87 b --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/b Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +b $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS tip - two revisions $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a') 200 Script output follows test: a history

test

log a

age author description
Thu, 01 Jan 1970 00:00:00 +0000 test second a
Thu, 01 Jan 1970 00:00:00 +0000 test first a
second version - two revisions $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a') 200 Script output follows test: a history

test

log a

age author description
Thu, 01 Jan 1970 00:00:00 +0000 test second a
Thu, 01 Jan 1970 00:00:00 +0000 test first a
first deleted - one revision $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a') 200 Script output follows test: a history

test

log a

age author description
Thu, 01 Jan 1970 00:00:00 +0000 test first a
first version - one revision $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a') 200 Script output follows test: a history

test

log a

age author description
Thu, 01 Jan 1970 00:00:00 +0000 test first a
before addition - error $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a') 404 Not Found test: error

test

error

An error occurred while processing your request:

a@6563da9dcf87: not found in manifest

[1] should show base link, use spartan because it shows it $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan') 200 Script output follows test: c history
changelog shortlog graph tags branches file annotate help rss atom

c revision history

navigate: (0) tip

Thu, 01 Jan 1970 00:00:00 +0000: change c
revision 1: b7682196df1c (diff) (annotate)
author: test
date: Thu, 01 Jan 1970 00:00:00 +0000
Thu, 01 Jan 1970 00:00:00 +0000: mv b
revision 0: 1a6696706df2 (diff) (annotate)
base: b@1e88685f5dde
author: test
date: Thu, 01 Jan 1970 00:00:00 +0000
rss log $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rss-log/tip/a') 200 Script output follows http://*:$HGPORT/ (glob) en-us test: a history a revision history second a http://*:$HGPORT/log01de2d66a28d/a (glob) test Thu, 01 Jan 1970 00:00:00 +0000 first a http://*:$HGPORT/log5ed941583260/a (glob) test Thu, 01 Jan 1970 00:00:00 +0000 atom log $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/atom-log/tip/a') 200 Script output follows http://*:$HGPORT/atom-log/tip/a (glob) (glob) test: a history 1970-01-01T00:00:00+00:00 second a http://*:$HGPORT/#changeset-01de2d66a28df5549090991dccda788726948517 (glob) (glob) test test 1970-01-01T00:00:00+00:00 1970-01-01T00:00:00+00:00
second a
first a http://*:$HGPORT/#changeset-5ed941583260248620985524192fdc382ef57c36 (glob) (glob) test test 1970-01-01T00:00:00+00:00 1970-01-01T00:00:00+00:00
first a
errors $ cat errors.log