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