diff --git a/tests/test-hgweb-filelog.out b/tests/test-hgweb-filelog.out deleted file mode 100644 --- a/tests/test-hgweb-filelog.out +++ /dev/null @@ -1,605 +0,0 @@ -adding b -adding a -adding a -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 - -% tip - two revisions -200 Script output follows - - - - - - - - -test: a history - - - - - -
- - -
-

test

-

log a

- - - - - - - - - - - - - - - - - - - - - - -
ageauthordescription
1970-01-01testsecond a
1970-01-01testfirst a
- - - -
-
- - - - - - -% second version - two revisions -200 Script output follows - - - - - - - - -test: a history - - - - - -
- - -
-

test

-

log a

- - - - - - - - - - - - - - - - - - - - - - -
ageauthordescription
1970-01-01testsecond a
1970-01-01testfirst a
- - - -
-
- - - - - - -% first deleted - one revision -200 Script output follows - - - - - - - - -test: a history - - - - - -
- - -
-

test

-

log a

- - - - - - - - - - - - - - - - - -
ageauthordescription
1970-01-01testfirst a
- - - -
-
- - - - - - -% first version - one revision -200 Script output follows - - - - - - - - -test: a history - - - - - -
- - -
-

test

-

log a

- - - - - - - - - - - - - - - - - -
ageauthordescription
1970-01-01testfirst a
- - - -
-
- - - - - - -% before addition - error -404 Not Found - - - - - - - - -test: error - - - -
- - -
- -

test

-

error

- - - -
-

-An error occurred while processing your request: -

-

-a@6563da9dcf87: not found in manifest -

-
-
-
- - - - - - -% should show base link, use spartan because it shows it -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 diff --git a/tests/test-hgweb-filelog b/tests/test-hgweb-filelog.t old mode 100755 new mode 100644 rename from tests/test-hgweb-filelog rename to tests/test-hgweb-filelog.t --- a/tests/test-hgweb-filelog +++ b/tests/test-hgweb-filelog.t @@ -1,51 +1,647 @@ -#!/bin/sh - -hg init test -cd test -echo b > b -hg ci -Am "b" + $ 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 -echo a > a -hg ci -Am "first a" +tip - two revisions -hg rm a -hg ci -m "del a" + $ ("$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
+ + + +
+
+ + + + + + -echo b > a -hg ci -Am "second a" +second version - two revisions -hg rm a -hg ci -m "del2 a" + $ ("$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
+ + + +
+
+ + + + + + -hg mv b c -hg ci -m "mv b" - -echo c >> c -hg ci -m "change c" +first deleted - one revision -hg log -p - -hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log -cat hg.pid >> $DAEMON_PIDS + $ ("$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
+ + + +
+
+ + + + + + -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') +first version - one revision -echo % first deleted - one revision -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a') + $ ("$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
+ + + +
+
+ + + + + + -echo % first version - one revision -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a') +before addition - error -echo % before addition - error -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a') + $ ("$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 -echo % should show base link, use spartan because it shows it -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan') + $ ("$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
+ + + + + + + + + + -echo % errors -cat errors.log +errors + + $ cat errors.log