tests/test-hgweb-non-interactive.t
changeset 13956 ffb5c09ba822
parent 12743 4c4aeaab2339
child 16913 f2719b387380
equal deleted inserted replaced
13954:1184bb274cb3 13956:ffb5c09ba822
     1 Tests if hgweb can run without touching sys.stdin, as is required
     1 Tests if hgweb can run without touching sys.stdin, as is required
     2 by the WSGI standard and strictly implemented by mod_wsgi.
     2 by the WSGI standard and strictly implemented by mod_wsgi.
     3 
     3 
     4   $ mkdir repo
     4   $ hg init repo
     5   $ cd repo
     5   $ cd repo
     6   $ hg init
       
     7   $ echo foo > bar
     6   $ echo foo > bar
     8   $ hg add bar
     7   $ hg add bar
     9   $ hg commit -m "test"
     8   $ hg commit -m "test"
    10   $ cat > request.py <<EOF
     9   $ cat > request.py <<EOF
    11   > from mercurial import dispatch
    10   > from mercurial import dispatch