##// END OF EJS Templates
test-interhg: test the extension
Martin Geisler -
r10473:634b0e75 stable
parent child Browse files
Show More
@@ -0,0 +1,28 b''
1 #!/bin/sh
2
3 hg init test
4 cd test
5
6 cat > .hg/hgrc <<EOF
7 [extensions]
8 interhg =
9
10 [interhg]
11 issues = s|Issue(\d+)|<a href="http://bts.example.org/issue\1">Issue\1</a>|
12
13 # yes, 'x' is a weird delimiter...
14 markbugs = sxbugx<i class="\x">bug</i>x
15 EOF
16
17 touch foo
18 hg add foo
19 hg commit -d '1 0' -m 'Issue123: fixed the bug!'
20
21 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
22 cat hg.pid >> $DAEMON_PIDS
23
24 echo % log
25 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/' | grep bts
26
27 echo % errors
28 cat errors.log
@@ -0,0 +1,3 b''
1 % log
2 <td class="description"><a href="/rev/1b0e7ece6bd6"><a href="http://bts.example.org/issue123">Issue123</a>: fixed the <i class="x">bug</i>!</a><span class="branchhead">default</span> <span class="tag">tip</span> </td>
3 % errors
General Comments 0
You need to be logged in to leave comments. Login now