diff -r b52ce78de84d -r b5538f89e5aa tests/test-hgweb-filelog.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-filelog.t Sun Sep 26 13:41:32 2010 -0500 @@ -0,0 +1,647 @@ + + $ 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

+ + + + + + + + + + + + + + + + + + + + + + +
ageauthordescription
1970-01-01testsecond a
1970-01-01testfirst 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

+ + + + + + + + + + + + + + + + + + + + + + +
ageauthordescription
1970-01-01testsecond a
1970-01-01testfirst 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

+ + + + + + + + + + + + + + + + + +
ageauthordescription
1970-01-01testfirst 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

+ + + + + + + + + + + + + + + + + +
ageauthordescription
1970-01-01testfirst 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 + rss + atom +
+ +

c revision history

+ +

navigate: (0) tip

+ + + + + + + + + + + + + + + + + + +
1970-01-01:change c
revision 1: + + b7682196df1c + (diff) + (annotate) +
author:test
date:Thu Jan 01 00:00:00 1970 +0000
+ + + + + + + + + + + + + + + + + + + + + + + +
1970-01-01:mv b
revision 0: + + 1a6696706df2 + (diff) + (annotate) +
base: + + b@1e88685f5dde + +
author:test
date:Thu Jan 01 00:00:00 1970 +0000
+ + + + + + + + + + + +errors + + $ cat errors.log