tests/test-interhg.t
branchstable
changeset 19067 292cd385856d
parent 18875 e9662c24f946
parent 19066 2cad301a7f06
child 19068 8618d31d532b
equal deleted inserted replaced
18875:e9662c24f946 19067:292cd385856d
     1   $ "$TESTDIR/hghave" serve || exit 80
       
     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 log
       
    25 
       
    26   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '' | grep bts
       
    27     <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>
       
    28 
       
    29 errors
       
    30 
       
    31   $ cat errors.log
       
    32 
       
    33   $ cd ..