tests/test-websub.t
changeset 42919 6ccf539aec71
parent 25472 4d2b9b304ad0
equal deleted inserted replaced
42918:f059d6ffcdf0 42919:6ccf539aec71
     9   > # interhg to websub works
     9   > # interhg to websub works
    10   > interhg =
    10   > interhg =
    11   > 
    11   > 
    12   > [websub]
    12   > [websub]
    13   > issues = s|Issue(\d+)|<a href="http://bts.example.org/issue\1">Issue\1</a>|
    13   > issues = s|Issue(\d+)|<a href="http://bts.example.org/issue\1">Issue\1</a>|
       
    14   > tickets = s|ticket(\d+)|<a href="http://ticket.example.org/issue\1">Ticket\1</a>|i
    14   > 
    15   > 
    15   > [interhg]
    16   > [interhg]
    16   > # check that we maintain some interhg backwards compatibility...
    17   > # check that we maintain some interhg backwards compatibility...
    17   > # yes, 'x' is a weird delimiter...
    18   > # yes, 'x' is a weird delimiter...
    18   > markbugs = sxbugx<i class="\x">bug</i>x
    19   > markbugs = sxbugx<i class="\x">bug</i>x
       
    20   > problems = sxPROBLEMx<i class="\x">problem</i>xi
    19   > EOF
    21   > EOF
    20 
    22 
    21   $ touch foo
    23   $ touch foo
    22   $ hg add foo
    24   $ hg add foo
    23   $ hg commit -d '1 0' -m 'Issue123: fixed the bug!'
    25   $ hg commit -d '1 0' -m 'Issue123: fixed the bug! Ticket456 and problem789 too'
    24 
    26 
    25   $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
    27   $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
    26   $ cat hg.pid >> $DAEMON_PIDS
    28   $ cat hg.pid >> $DAEMON_PIDS
    27 
    29 
    28 log
    30 log
    29 
    31 
    30   $ get-with-headers.py localhost:$HGPORT "rev/tip" | grep bts
    32   $ 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>
    33   <div class="description"><a href="http://bts.example.org/issue123">Issue123</a>: fixed the <i class="x">bug</i>! <a href="http://ticket.example.org/issue456">Ticket456</a> and <i class="x">problem</i>789 too</div>
    32 errors
    34 errors
    33 
    35 
    34   $ cat errors.log
    36   $ cat errors.log
    35 
    37 
    36   $ cd ..
    38   $ cd ..