# HG changeset patch # User Stefan Ring # Date 1231762809 -3600 # Node ID f2fa1a9eede60ef1e07bd45a014609e14198bbfb # Parent 03007ad080279553c985c037b64865462d15a2c6 Improved hgweb test. The hgweb fix in 069b29656401 aimed at restoring the "back" link in hgweb's filelog that has been lost in 62e0bb41e682. However, the previous version of this test ran the filelog command on a file with only a single filelog entry. In this case, the previous hgweb version did not exhibit the bug. The error condition is now correctly tested with a filelog of 2 entries. diff -r 03007ad08027 -r f2fa1a9eede6 tests/test-hgweb-filelog --- a/tests/test-hgweb-filelog Mon Jan 12 09:57:52 2009 +0100 +++ b/tests/test-hgweb-filelog Mon Jan 12 13:20:09 2009 +0100 @@ -19,6 +19,9 @@ 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 diff -r 03007ad08027 -r f2fa1a9eede6 tests/test-hgweb-filelog.out --- a/tests/test-hgweb-filelog.out Mon Jan 12 09:57:52 2009 +0100 +++ b/tests/test-hgweb-filelog.out Mon Jan 12 13:20:09 2009 +0100 @@ -1,8 +1,20 @@ adding b adding a adding a +changeset: 6:38d962e6234d +tag: tip +user: test +date: Thu Jan 01 00:00:00 1970 +0000 +summary: change c + +diff -r a3b6a9e4507e -r 38d962e6234d 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:a3b6a9e4507e -tag: tip user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: mv b @@ -474,8 +486,8 @@ shortlog graph tags -file -annotate +file +annotate rss atom @@ -487,6 +499,31 @@ + + + + + + + + + + + + + + +
many years ago:change c
revision 1: + + 38d962e6234d + (diff) + (annotate) +
author:test
date:Thu Jan 01 00:00:00 1970 +0000
+ + + + +
many years ago: mv b