##// END OF EJS Templates
hgweb: drop references to deprecated cgitb...
Mads Kiilerich -
r51627:d5cd1fd6 stable
parent child Browse files
Show More
@@ -9,9 +9,6 b' config = b"/path/to/repo/or/config"'
9 9 # (consult "installed modules" path from 'hg debuginstall'):
10 10 # import sys; sys.path.insert(0, "/path/to/python/lib")
11 11
12 # Uncomment to send python tracebacks to the browser if an error occurs:
13 # import cgitb; cgitb.enable()
14
15 12 from mercurial import demandimport
16 13
17 14 demandimport.enable()
@@ -8,9 +8,6 b' config = b"/path/to/repo/or/config"'
8 8 # (consult "installed modules" path from 'hg debuginstall'):
9 9 #import sys; sys.path.insert(0, "/path/to/python/lib")
10 10
11 # Uncomment to send python tracebacks to the browser if an error occurs:
12 #import cgitb; cgitb.enable()
13
14 11 # enable demandloading to reduce startup time
15 12 from mercurial import demandimport; demandimport.enable()
16 13
@@ -10,9 +10,6 b' config = b"/path/to/repo/or/config"'
10 10 # (consult "installed modules" path from 'hg debuginstall'):
11 11 # import sys; sys.path.insert(0, "/path/to/python/lib")
12 12
13 # Uncomment to send python tracebacks to the browser if an error occurs:
14 # import cgitb; cgitb.enable()
15
16 13 from mercurial import demandimport
17 14
18 15 demandimport.enable()
@@ -12,8 +12,6 b' initialize repository'
12 12 $ cat >hgweb.cgi <<HGWEB
13 13 > #
14 14 > # An example CGI script to use hgweb, edit as necessary
15 > import cgitb
16 > cgitb.enable()
17 15 > from mercurial import demandimport; demandimport.enable()
18 16 > from mercurial.hgweb import hgweb
19 17 > from mercurial.hgweb import wsgicgi
@@ -1581,8 +1581,6 b' Test that secret mq patch does not break'
1581 1581 > from mercurial import demandimport; demandimport.enable()
1582 1582 > from mercurial.hgweb import hgweb
1583 1583 > from mercurial.hgweb import wsgicgi
1584 > import cgitb
1585 > cgitb.enable()
1586 1584 > app = hgweb(b'.', b'test')
1587 1585 > wsgicgi.launch(app)
1588 1586 > HGWEB
@@ -9,9 +9,6 b' before d74fc8dec2b4 still work.'
9 9 > #
10 10 > # An example CGI script to use hgweb, edit as necessary
11 11 >
12 > import cgitb
13 > cgitb.enable()
14 >
15 12 > from mercurial import demandimport; demandimport.enable()
16 13 > from mercurial.hgweb import hgweb
17 14 > from mercurial.hgweb import wsgicgi
@@ -35,9 +32,6 b' before d74fc8dec2b4 still work.'
35 32 > #
36 33 > # An example CGI script to export multiple hgweb repos, edit as necessary
37 34 >
38 > import cgitb
39 > cgitb.enable()
40 >
41 35 > from mercurial import demandimport; demandimport.enable()
42 36 > from mercurial.hgweb import hgwebdir
43 37 > from mercurial.hgweb import wsgicgi
@@ -9,9 +9,6 b' This is a rudimentary test of the CGI fi'
9 9 > #
10 10 > # An example CGI script to use hgweb, edit as necessary
11 11 >
12 > import cgitb
13 > cgitb.enable()
14 >
15 12 > from mercurial import demandimport; demandimport.enable()
16 13 > from mercurial.hgweb import hgweb
17 14 > from mercurial.hgweb import wsgicgi
@@ -32,9 +29,6 b' This is a rudimentary test of the CGI fi'
32 29 > #
33 30 > # An example CGI script to export multiple hgweb repos, edit as necessary
34 31 >
35 > import cgitb
36 > cgitb.enable()
37 >
38 32 > from mercurial import demandimport; demandimport.enable()
39 33 > from mercurial.hgweb import hgwebdir
40 34 > from mercurial.hgweb import wsgicgi
@@ -8,8 +8,7 b' This tests if CGI files from before d0db'
8 8 > #
9 9 > # An example CGI script to use hgweb, edit as necessary
10 10 >
11 > import cgitb, os, sys
12 > cgitb.enable()
11 > import os, sys
13 12 >
14 13 > # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
15 14 > from mercurial import hgweb
@@ -30,8 +29,7 b' This tests if CGI files from before d0db'
30 29 > #
31 30 > # An example CGI script to export multiple hgweb repos, edit as necessary
32 31 >
33 > import cgitb, sys
34 > cgitb.enable()
32 > import sys
35 33 >
36 34 > # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
37 35 > from mercurial import hgweb
@@ -16,8 +16,6 b' initialize repository'
16 16 create hgweb invocation script
17 17
18 18 $ cat >hgweb.cgi <<HGWEB
19 > import cgitb
20 > cgitb.enable()
21 19 > from mercurial import demandimport; demandimport.enable()
22 20 > from mercurial.hgweb import hgweb
23 21 > from mercurial.hgweb import wsgicgi
General Comments 0
You need to be logged in to leave comments. Login now