# HG changeset patch # User Matt Mackall # Date 1285526492 18000 # Node ID b7fd332e5ca2a068b58ffc13742eb6593857ffb7 # Parent cb1e33a41d136277b9dfd07adcefc3d72b991126 tests: unify test-hgweb-removed diff -r cb1e33a41d13 -r b7fd332e5ca2 tests/test-hgweb-removed --- a/tests/test-hgweb-removed Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -#!/bin/sh - -echo % setting up repo -hg init test -cd test -echo a > a -hg ci -Ama -hg rm a -hg ci -mdel - -echo % set up hgweb -hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log -cat hg.pid >> $DAEMON_PIDS - -echo % revision -"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip' - -echo % diff removed file -"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' diff -r cb1e33a41d13 -r b7fd332e5ca2 tests/test-hgweb-removed.out --- a/tests/test-hgweb-removed.out Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,181 +0,0 @@ -% setting up repo -adding a -% set up hgweb -% revision -200 Script output follows - - - - - - - - -test: c78f6c5cbea9 - - -
- - -
- -

test

-

changeset 1:c78f6c5cbea9 tip

- - - -
del
- - - - - - - - - - - - - - - - - - - - - -
authortest
dateThu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parentscb9a9f314b8b
children
filesa
- -
-
line diff
- -
     1.1 --- a/a	Thu Jan 01 00:00:00 1970 +0000
-     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
-     1.3 @@ -1,1 +0,0 @@
-     1.4 -a
-
-
- -
-
- - - - - -% diff removed file -200 Script output follows - - - - - - - - -test: a diff - - - -
- - -
-

test

-

diff a @ 1:c78f6c5cbea9

- - - -
del
- - - - - - - - - - - - - - - - - - - -
authortest
dateThu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parentscb9a9f314b8b
children
- -
-
line diff
- -
     1.1 --- a/a	Thu Jan 01 00:00:00 1970 +0000
-     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
-     1.3 @@ -1,1 +0,0 @@
-     1.4 -a
-
-
-
-
- - - - - - diff -r cb1e33a41d13 -r b7fd332e5ca2 tests/test-hgweb-removed.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-removed.t Sun Sep 26 13:41:32 2010 -0500 @@ -0,0 +1,198 @@ +setting up repo + + $ hg init test + $ cd test + $ echo a > a + $ hg ci -Ama + adding a + $ hg rm a + $ hg ci -mdel + +set up hgweb + + $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log + $ cat hg.pid >> $DAEMON_PIDS + +revision + + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip' + 200 Script output follows + + + + + + + + + test: c78f6c5cbea9 + + +
+ + +
+ +

test

+

changeset 1:c78f6c5cbea9 tip

+ + + +
del
+ + + + + + + + + + + + + + + + + + + + + +
authortest
dateThu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parentscb9a9f314b8b
children
filesa
+ +
+
line diff
+ +
     1.1 --- a/a	Thu Jan 01 00:00:00 1970 +0000
+       1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
+       1.3 @@ -1,1 +0,0 @@
+       1.4 -a
+  
+
+ +
+
+ + + + + + +diff removed file + + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' + 200 Script output follows + + + + + + + + + test: a diff + + + +
+ + +
+

test

+

diff a @ 1:c78f6c5cbea9

+ + + +
del
+ + + + + + + + + + + + + + + + + + + +
authortest
dateThu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parentscb9a9f314b8b
children
+ +
+
line diff
+ +
     1.1 --- a/a	Thu Jan 01 00:00:00 1970 +0000
+       1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
+       1.3 @@ -1,1 +0,0 @@
+       1.4 -a
+  
+
+
+
+ + + + + +