Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG9448b2e4c9fa: py3: fix test-newcgi.t
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | contrib/python3-whitelist (1 line) | |||
M | tests/test-newcgi.t (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Augie Fackler | Jan 24 2019, 3:02 PM |
test-narrow-strip.t | test-narrow-strip.t | ||||
test-narrow-trackedcmd.t | test-narrow-trackedcmd.t | ||||
test-narrow-update.t | test-narrow-update.t | ||||
test-narrow-widen-no-ellipsis.t | test-narrow-widen-no-ellipsis.t | ||||
test-narrow-widen.t | test-narrow-widen.t | ||||
test-narrow.t | test-narrow.t | ||||
test-nested-repo.t | test-nested-repo.t | ||||
test-newbranch.t | test-newbranch.t | ||||
test-newcgi.t | |||||
test-newercgi.t | test-newercgi.t | ||||
test-nointerrupt.t | test-nointerrupt.t | ||||
test-obshistory.t | test-obshistory.t | ||||
test-obsmarker-template.t | test-obsmarker-template.t | ||||
test-obsmarkers-effectflag.t | test-obsmarkers-effectflag.t | ||||
test-obsolete-bounds-checking.t | test-obsolete-bounds-checking.t | ||||
test-obsolete-bundle-strip.t | test-obsolete-bundle-strip.t | ||||
test-obsolete-changeset-exchange.t | test-obsolete-changeset-exchange.t |
> cgitb.enable() | > cgitb.enable() | ||||
> | > | ||||
> from mercurial import demandimport; demandimport.enable() | > from mercurial import demandimport; demandimport.enable() | ||||
> from mercurial.hgweb import hgweb | > from mercurial.hgweb import hgweb | ||||
> from mercurial.hgweb import wsgicgi | > from mercurial.hgweb import wsgicgi | ||||
> from mercurial.hgweb.request import wsgiapplication | > from mercurial.hgweb.request import wsgiapplication | ||||
> | > | ||||
> def make_web_app(): | > def make_web_app(): | ||||
> return hgweb("test", "Empty test repository") | > return hgweb(b"test", b"Empty test repository") | ||||
> | > | ||||
> wsgicgi.launch(wsgiapplication(make_web_app)) | > wsgicgi.launch(wsgiapplication(make_web_app)) | ||||
> HGWEB | > HGWEB | ||||
$ chmod 755 hgweb.cgi | $ chmod 755 hgweb.cgi | ||||
$ cat >hgweb.config <<HGWEBDIRCONF | $ cat >hgweb.config <<HGWEBDIRCONF | ||||
> [paths] | > [paths] | ||||
> cgitb.enable() | > cgitb.enable() | ||||
> | > | ||||
> from mercurial import demandimport; demandimport.enable() | > from mercurial import demandimport; demandimport.enable() | ||||
> from mercurial.hgweb import hgwebdir | > from mercurial.hgweb import hgwebdir | ||||
> from mercurial.hgweb import wsgicgi | > from mercurial.hgweb import wsgicgi | ||||
> from mercurial.hgweb.request import wsgiapplication | > from mercurial.hgweb.request import wsgiapplication | ||||
> | > | ||||
> def make_web_app(): | > def make_web_app(): | ||||
> return hgwebdir("hgweb.config") | > return hgwebdir(b"hgweb.config") | ||||
> | > | ||||
> wsgicgi.launch(wsgiapplication(make_web_app)) | > wsgicgi.launch(wsgiapplication(make_web_app)) | ||||
> HGWEBDIR | > HGWEBDIR | ||||
$ chmod 755 hgwebdir.cgi | $ chmod 755 hgwebdir.cgi | ||||
$ . "$TESTDIR/cgienv" | $ . "$TESTDIR/cgienv" | ||||
$ "$PYTHON" hgweb.cgi > page1 | $ "$PYTHON" hgweb.cgi > page1 |