##// END OF EJS Templates
add a fix for issue 1175...
add a fix for issue 1175 If we copy a file followed by an update, it's possible for the parent manifest to no longer contain the source file of the copy, which could cause commit to fail. If this happens, we search backwares from the first parent to find the most likely original revision.

File last commit:

r6786:97e214dc default
r6875:0d714a48 default
Show More
test-hgweb-commands
57 lines | 2.4 KiB | text/plain | TextLexer
/ tests / test-hgweb-commands
Dirkjan Ochtman
add more tests for hgweb commands
r5590 #!/bin/sh
# An attempt at more fully testing the hgweb web interface.
# The following things are tested elsewhere and are therefore omitted:
# - archive, tested in test-archive
# - unbundle, tested in test-push-http
# - changegroupsubset, tested in test-pull
echo % Set up the repo
hg init test
cd test
mkdir da
echo foo > da/foo
echo foo > foo
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 hg ci -d'0 0' -Ambase
Dirkjan Ochtman
add more tests for hgweb commands
r5590 hg tag 1.0
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
cat hg.pid >> $DAEMON_PIDS
echo % Logs and changes
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/foo/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/shortlog/' | sed "s/[0-9]* years/many years/"
Dirkjan Ochtman
hgweb: fix parameter mixup (issue1001)
r6168 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/0/' | sed "s/[0-9]* years ago/long ago/g"
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/1/?style=raw'
echo % File-related
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw'
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw'
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw'
Dirkjan Ochtman
hgweb: fix a stupid KeyError introduced in a0e20a5eba3c...
r5923 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo' | sed "s/[0-9]* years/many years/"
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw'
echo % Overviews
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/tags/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
Patrick Mezard
test-hgweb-commands: replace all "XX years ago" occurences
r5687 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb' | sed "s/[0-9]* years ago/long ago/g"
Dirkjan Ochtman
add more tests for hgweb commands
r5590
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % capabilities
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/capabilities'
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % heads
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/heads'
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % lookup
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/lookup/1'
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % branches
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/branches'
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % changegroup
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/changegroup'
Bryan O'Sullivan
Fix breaking test from 05451f6b5f07
r5593 echo % stream_out
Dirkjan Ochtman
add more tests for hgweb commands
r5590 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/stream_out'
Dirkjan Ochtman
hgweb: only accept POST requests for unbundle
r6335 echo % failing unbundle, requires POST request
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/unbundle'
Dirkjan Ochtman
add more tests for hgweb commands
r5590
echo % Static files
"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/static/style.css'
echo % ERRORS ENCOUNTERED
cat errors.log