tests/test-hgweb-removed
author Martin Geisler <mg@lazybytes.net>
Sun, 26 Apr 2009 14:49:49 +0200
changeset 8168 8766fee6f225
parent 7183 099b4f9be5ab
child 8452 cb93eee1fbcd
permissions -rwxr-xr-x
tests: removed redundant "-u test" from test scripts The tests are executed with a .hgrc file which adds "-u test" by default.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7183
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     1
echo % setting up repo
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     2
hg init test
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     3
cd test
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     4
echo a > a
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     5
hg ci -Ama
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     6
hg rm a
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     7
hg ci -mdel
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     8
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
     9
echo % set up hgweb
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    10
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    11
cat hg.pid >> $DAEMON_PIDS
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    12
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    13
echo % revision
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    14
"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip'
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    15
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    16
echo % diff removed file
099b4f9be5ab hgweb: working diff for removed files
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    17
"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'