tests/test-interhg
branchstable
changeset 10473 634b0e7561ec
equal deleted inserted replaced
10472:9126d13bad7a 10473:634b0e7561ec
       
     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