comparison tests/test-websub.t @ 18629:013fcd112f13

extensions: obsolete and remove interhg extension With the addition of the websub filter extension this extension is no longer needed. We maintain a sort of backwards compatibility by reading the [interhg] section and using it as we would use the [websub] section.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Sat, 09 Feb 2013 11:00:42 +0100
parents tests/test-interhg.t@953faba28e91
children 7a9cbb315d84
comparison
equal deleted inserted replaced
18628:52305554fd6e 18629:013fcd112f13
1 $ "$TESTDIR/hghave" serve || exit 80
2
3 $ hg init test
4 $ cd test
5
6 $ cat > .hg/hgrc <<EOF
7 > [extensions]
8 > # this is only necessary to check that the mapping from
9 > # interhg to websub works
10 > interhg =
11 >
12 > [websub]
13 > issues = s|Issue(\d+)|<a href="http://bts.example.org/issue\1">Issue\1</a>|
14 >
15 > [interhg]
16 > # check that we maintain some interhg backwards compatibility...
17 > # yes, 'x' is a weird delimiter...
18 > markbugs = sxbugx<i class="\x">bug</i>x
19 > EOF
20
21 $ touch foo
22 $ hg add foo
23 $ hg commit -d '1 0' -m 'Issue123: fixed the bug!'
24
25 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
26 $ cat hg.pid >> $DAEMON_PIDS
27
28 log
29
30 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT "rev/tip" | grep bts
31 <div class="description"><a href="http://bts.example.org/issue123">Issue123</a>: fixed the <i class="x">bug</i>!</div>
32 errors
33
34 $ cat errors.log
35
36 $ cd ..