comparison tests/test-hgwebdir @ 7450:79d1bb737c16

hgweb: extend [paths] syntax to match repositories recursively (issue852) This feature somehow duplicates [collections] but it is simpler to use and has less issues under Windows where using absolute path as configuration file key is not supported. Suggested by Dirkjan Ochtman <dirkjan@ochtman.nl>
author Patrick Mezard <pmezard@gmail.com>
date Mon, 01 Dec 2008 14:20:20 +0100
parents 268c582bd42a
children 85dc88630beb
comparison
equal deleted inserted replaced
7449:f848d7f96195 7450:79d1bb737c16
49 49
50 cat > paths.conf <<EOF 50 cat > paths.conf <<EOF
51 [paths] 51 [paths]
52 t/a/=$root/a 52 t/a/=$root/a
53 b=$root/b 53 b=$root/b
54 coll=$root/*
54 EOF 55 EOF
55 56
56 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \ 57 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
57 -A access-paths.log -E error-paths-2.log 58 -A access-paths.log -E error-paths-2.log
58 cat hg.pid >> $DAEMON_PIDS 59 cat hg.pid >> $DAEMON_PIDS
64 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \ 65 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \
65 | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" 66 | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
66 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \ 67 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \
67 | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" 68 | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
68 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw' 69 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw'
70 # Test [paths] '*' extension
71 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/?style=raw'
72 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/a/file/tip/a?style=raw'
69 73
70 cat > collections.conf <<EOF 74 cat > collections.conf <<EOF
71 [collections] 75 [collections]
72 $root=$root 76 $root=$root
73 EOF 77 EOF