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
author test
date Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parents cb9a9f314b8b
children
files a
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
author test
date Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)
parents cb9a9f314b8b
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