Show More
@@ -25,6 +25,9 b' You can use pattern matching of your nor' | |||
|
25 | 25 | command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}" |
|
26 | 26 | """ |
|
27 | 27 | |
|
28 | # enable importing on demand to reduce startup time | |
|
29 | from mercurial import demandimport; demandimport.enable() | |
|
30 | ||
|
28 | 31 | from mercurial import dispatch |
|
29 | 32 | |
|
30 | 33 | import sys, os |
@@ -2,6 +2,9 b'' | |||
|
2 | 2 | # |
|
3 | 3 | # An example CGI script to export multiple hgweb repos, edit as necessary |
|
4 | 4 | |
|
5 | # enable demandloading to reduce startup time | |
|
6 | from mercurial import demandimport; demandimport.enable() | |
|
7 | ||
|
5 | 8 | # send python tracebacks to the browser if an error occurs: |
|
6 | 9 | import cgitb |
|
7 | 10 | cgitb.enable() |
@@ -7,5 +7,8 b'' | |||
|
7 | 7 | # This software may be used and distributed according to the terms |
|
8 | 8 | # of the GNU General Public License, incorporated herein by reference. |
|
9 | 9 | |
|
10 | # enable importing on demand to reduce startup time | |
|
11 | from mercurial import demandimport; demandimport.enable() | |
|
12 | ||
|
10 | 13 | import mercurial.dispatch |
|
11 | 14 | mercurial.dispatch.run() |
@@ -2,6 +2,9 b'' | |||
|
2 | 2 | # |
|
3 | 3 | # An example CGI script to use hgweb, edit as necessary |
|
4 | 4 | |
|
5 | # enable importing on demand to reduce startup time | |
|
6 | from mercurial import demandimport; demandimport.enable() | |
|
7 | ||
|
5 | 8 | # send python tracebacks to the browser if an error occurs: |
|
6 | 9 | import cgitb |
|
7 | 10 | cgitb.enable() |
@@ -2,6 +2,9 b'' | |||
|
2 | 2 | # |
|
3 | 3 | # An example CGI script to export multiple hgweb repos, edit as necessary |
|
4 | 4 | |
|
5 | # enable importing on demand to reduce startup time | |
|
6 | from mercurial import demandimport; demandimport.enable() | |
|
7 | ||
|
5 | 8 | # send python tracebacks to the browser if an error occurs: |
|
6 | 9 | import cgitb |
|
7 | 10 | cgitb.enable() |
@@ -6,7 +6,6 b'' | |||
|
6 | 6 | # This software may be used and distributed according to the terms |
|
7 | 7 | # of the GNU General Public License, incorporated herein by reference. |
|
8 | 8 | |
|
9 | from mercurial import demandimport; demandimport.enable() | |
|
10 | 9 | import os, mimetools, cStringIO |
|
11 | 10 | from mercurial.i18n import gettext as _ |
|
12 | 11 | from mercurial import ui, hg, util, templater |
General Comments 0
You need to be logged in to leave comments.
Login now