equal
deleted
inserted
replaced
578 date: Thu, 01 Jan 1970 00:00:00 +0000 |
578 date: Thu, 01 Jan 1970 00:00:00 +0000 |
579 summary: base |
579 summary: base |
580 |
580 |
581 |
581 |
582 |
582 |
|
583 no style can be loaded from directories other than the specified paths |
|
584 |
|
585 $ mkdir -p x/templates/fallback |
|
586 $ cat <<EOF > x/templates/fallback/map |
|
587 > default = 'shortlog' |
|
588 > shortlog = 'fall back to default\n' |
|
589 > mimetype = 'text/plain' |
|
590 > EOF |
|
591 $ cat <<EOF > x/map |
|
592 > default = 'shortlog' |
|
593 > shortlog = 'access to outside of templates directory\n' |
|
594 > mimetype = 'text/plain' |
|
595 > EOF |
|
596 |
|
597 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS |
|
598 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log \ |
|
599 > --config web.style=fallback --config web.templates=x/templates |
|
600 $ cat hg.pid >> $DAEMON_PIDS |
|
601 |
|
602 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT "?style=`pwd`/x" |
|
603 200 Script output follows |
|
604 |
|
605 fall back to default |
|
606 |
|
607 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '?style=..' |
|
608 200 Script output follows |
|
609 |
|
610 fall back to default |
|
611 |
|
612 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '?style=./..' |
|
613 200 Script output follows |
|
614 |
|
615 fall back to default |
|
616 |
|
617 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '?style=.../.../' |
|
618 200 Script output follows |
|
619 |
|
620 fall back to default |
|
621 |
583 errors |
622 errors |
584 |
623 |
585 $ cat errors.log |
624 $ cat errors.log |
586 |
625 |
587 Uncaught exceptions result in a logged error and canned HTTP response |
626 Uncaught exceptions result in a logged error and canned HTTP response |