2014-08-06 20:43:59 +04:00
|
|
|
#require serve
|
2011-11-07 06:24:53 +04:00
|
|
|
|
2010-08-30 14:05:13 +04:00
|
|
|
$ hg init test
|
|
|
|
$ cd test
|
|
|
|
|
|
|
|
$ cat > .hg/hgrc <<EOF
|
|
|
|
> [extensions]
|
2013-02-09 14:00:42 +04:00
|
|
|
> # this is only necessary to check that the mapping from
|
|
|
|
> # interhg to websub works
|
2010-08-30 14:05:13 +04:00
|
|
|
> interhg =
|
|
|
|
>
|
2013-02-09 14:00:42 +04:00
|
|
|
> [websub]
|
2010-08-30 14:05:13 +04:00
|
|
|
> issues = s|Issue(\d+)|<a href="http://bts.example.org/issue\1">Issue\1</a>|
|
|
|
|
>
|
2013-02-09 14:00:42 +04:00
|
|
|
> [interhg]
|
|
|
|
> # check that we maintain some interhg backwards compatibility...
|
2010-08-30 14:05:13 +04:00
|
|
|
> # yes, 'x' is a weird delimiter...
|
|
|
|
> markbugs = sxbugx<i class="\x">bug</i>x
|
|
|
|
> EOF
|
|
|
|
|
|
|
|
$ touch foo
|
|
|
|
$ hg add foo
|
|
|
|
$ hg commit -d '1 0' -m 'Issue123: fixed the bug!'
|
|
|
|
|
2018-02-08 02:18:29 +03:00
|
|
|
$ hg serve -n test -p 0 --port-file $TESTTMP/.port -d --pid-file=hg.pid -A access.log -E errors.log
|
|
|
|
$ HGPORT=`cat $TESTTMP/.port`
|
2010-08-30 14:05:13 +04:00
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
|
|
|
|
log
|
|
|
|
|
2015-06-08 22:44:30 +03:00
|
|
|
$ get-with-headers.py localhost:$HGPORT "rev/tip" | grep bts
|
2013-02-09 14:00:42 +04:00
|
|
|
<div class="description"><a href="http://bts.example.org/issue123">Issue123</a>: fixed the <i class="x">bug</i>!</div>
|
2010-08-30 14:05:13 +04:00
|
|
|
errors
|
|
|
|
|
|
|
|
$ cat errors.log
|
2012-06-11 03:40:51 +04:00
|
|
|
|
|
|
|
$ cd ..
|