#require serve Some tests for hgweb in an empty repository and empty archive $ hg init test $ cd test $ cat << EOF >> .hg/hgrc > [web] > allow-archive = zip > [ui] > archivemeta = False > EOF $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log $ cat hg.pid >> $DAEMON_PIDS $ (get-with-headers.py localhost:$HGPORT 'shortlog') 200 Script output follows test: log

log

age author description
$ echo babar babar $ (get-with-headers.py localhost:$HGPORT 'log') 200 Script output follows test: log

log

age author description
$ (get-with-headers.py localhost:$HGPORT 'graph') 200 Script output follows test: revision graph

graph

    $ (get-with-headers.py localhost:$HGPORT 'file') 200 Script output follows test: 000000000000 /

    directory / @ -1:000000000000 tip

    name size permissions
    $ (get-with-headers.py localhost:$HGPORT 'atom-bookmarks') 200 Script output follows http://*:$HGPORT/ (glob) (glob) (glob) test: bookmarks test bookmark history Mercurial SCM 1970-01-01T00:00:00+00:00 Fetching an empty archive ------------------------- Test that archiving without matching files is rejected as error, not as Internal Server Error. $ get-with-headers.py --headeronly localhost:$HGPORT archive/null.zip 403 Forbidden [1] $ cd ..