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