(0.9.2compat) add test for web changeset 0.9.2compat
authorChristian Ebert <blacktrash@gmx.net>
Sun, 30 Mar 2008 18:25:25 +0200
branch0.9.2compat
changeset 434 0884558504a3
parent 433 d830cdde0ddb
child 435 7bc92583f344
(0.9.2compat) add test for web changeset web filediff has no backwards compatible url, so omit. Also remove clone updating status from new hg versions.
tests/test-keyword
tests/test-keyword.out
--- a/tests/test-keyword	Sun Mar 30 17:13:02 2008 +0200
+++ b/tests/test-keyword	Sun Mar 30 18:25:25 2008 +0200
@@ -215,7 +215,8 @@
 
 echo % clone to test incoming
 cd ..
-hg clone -r1 Test Test-a
+# remove updating status for backwards compatibility
+hg clone -r1 Test Test-a | grep -v 'working directory'
 cd Test-a
 cat <<EOF >> .hg/hgrc
 [paths]
@@ -277,3 +278,12 @@
 cat a b
 echo % hg cat
 hg cat a b
+
+echo % hg serve
+test -n "$HGPORT" || export HGPORT=20063
+hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+cat hg.pid >> $DAEMON_PIDS
+echo % hgweb changeset
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw')
+echo % errors encountered
+cat errors.log
--- a/tests/test-keyword.out	Sun Mar 30 17:13:02 2008 +0200
+++ b/tests/test-keyword.out	Sun Mar 30 18:25:25 2008 +0200
@@ -316,3 +316,24 @@
 xxx $
 $Xinfo$
 ignore $Id$
+% hg serve
+% hgweb changeset
+200 Script output follows
+
+
+# HG changeset patch
+# User User Name <user@example.com>
+# Date 3 0
+# Node ID 93c8b61c99cd3081911aaa80cbeef1061a11c97a
+# Parent 9ea11ce3ca13e750b2187a042a5a92c302cf043f
+xa
+
+--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
++++ b/x/a	Thu Jan 01 00:00:03 1970 +0000
+@@ -0,0 +1,4 @@
++expand $Id$
++do not process $Id:
++xxx $
++$Xinfo$
+
+% errors encountered