Mercurial > hg > mercurial-crew-with-dirclash
comparison hgwebdir.cgi @ 5344:cc34be74eeec
Merge with crew-stable.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sat, 29 Sep 2007 21:10:54 -0700 |
parents | 79279b5583c6 |
children |
comparison
equal
deleted
inserted
replaced
5343:26692d08c2f9 | 5344:cc34be74eeec |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # An example CGI script to export multiple hgweb repos, edit as necessary | 3 # An example CGI script to export multiple hgweb repos, edit as necessary |
4 | 4 |
5 # adjust python path if not a system-wide install: | |
6 #import sys | |
7 #sys.path.insert(0, "/path/to/python/lib") | |
8 | |
9 # enable importing on demand to reduce startup time | |
10 from mercurial import demandimport; demandimport.enable() | |
11 | |
5 # send python tracebacks to the browser if an error occurs: | 12 # send python tracebacks to the browser if an error occurs: |
6 import cgitb | 13 import cgitb |
7 cgitb.enable() | 14 cgitb.enable() |
8 | |
9 # adjust python path if not a system-wide install: | |
10 #import sys | |
11 #sys.path.insert(0, "/path/to/python/lib") | |
12 | 15 |
13 # If you'd like to serve pages with UTF-8 instead of your default | 16 # If you'd like to serve pages with UTF-8 instead of your default |
14 # locale charset, you can do so by uncommenting the following lines. | 17 # locale charset, you can do so by uncommenting the following lines. |
15 # Note that this will cause your .hgrc files to be interpreted in | 18 # Note that this will cause your .hgrc files to be interpreted in |
16 # UTF-8 and all your repo files to be displayed using UTF-8. | 19 # UTF-8 and all your repo files to be displayed using UTF-8. |