equal
deleted
inserted
replaced
14 > from mercurial.hgweb import hgweb |
14 > from mercurial.hgweb import hgweb |
15 > from mercurial.hgweb import wsgicgi |
15 > from mercurial.hgweb import wsgicgi |
16 > from mercurial.hgweb.request import wsgiapplication |
16 > from mercurial.hgweb.request import wsgiapplication |
17 > |
17 > |
18 > def make_web_app(): |
18 > def make_web_app(): |
19 > return hgweb("test", "Empty test repository") |
19 > return hgweb("test", "Empty test repository") |
20 > |
20 > |
21 > wsgicgi.launch(wsgiapplication(make_web_app)) |
21 > wsgicgi.launch(wsgiapplication(make_web_app)) |
22 > HGWEB |
22 > HGWEB |
23 |
23 |
24 $ chmod 755 hgweb.cgi |
24 $ chmod 755 hgweb.cgi |
40 > from mercurial.hgweb import hgwebdir |
40 > from mercurial.hgweb import hgwebdir |
41 > from mercurial.hgweb import wsgicgi |
41 > from mercurial.hgweb import wsgicgi |
42 > from mercurial.hgweb.request import wsgiapplication |
42 > from mercurial.hgweb.request import wsgiapplication |
43 > |
43 > |
44 > def make_web_app(): |
44 > def make_web_app(): |
45 > return hgwebdir("hgweb.config") |
45 > return hgwebdir("hgweb.config") |
46 > |
46 > |
47 > wsgicgi.launch(wsgiapplication(make_web_app)) |
47 > wsgicgi.launch(wsgiapplication(make_web_app)) |
48 > HGWEBDIR |
48 > HGWEBDIR |
49 |
49 |
50 $ chmod 755 hgwebdir.cgi |
50 $ chmod 755 hgwebdir.cgi |