comparison hgweb.cgi @ 391:5f65a108a559

hgweb: pull cgitb into CGI script example, where it can easily be disabled -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: pull cgitb into CGI script example, where it can easily be disabled This also eliminates cgitb dumps in the logging output of hg serve manifest hash: a0aa07a706c2c388c0b49505e2960197f716920c -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCsv9DywK+sNU5EO8RAieFAJwOjdfkz7pILNVUTvpMkRa6/OIhIQCgo2TP I2E4hxQ0N7mTtl45pXEFLsk= =tG0v -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 17 Jun 2005 08:50:11 -0800
parents e875a0cf7f3a
children d0db3462d568
comparison
equal deleted inserted replaced
390:50aea13227a2 391:5f65a108a559
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # An example CGI script to use hgweb, edit as necessary 3 # An example CGI script to use hgweb, edit as necessary
4 4
5 import cgitb, os, sys 5 import cgitb, os, sys
6 cgitb.enable()
7
6 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install 8 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
7 from mercurial import hgweb 9 from mercurial import hgweb
8 10
9 h = hgweb.hgweb("/path/to/repo", "repository name") 11 h = hgweb.hgweb("/path/to/repo", "repository name")
10 h.run() 12 h.run()