diff 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
line wrap: on
line diff
--- a/hgweb.cgi	Fri Jun 17 15:05:32 2005 +0100
+++ b/hgweb.cgi	Fri Jun 17 08:50:11 2005 -0800
@@ -3,6 +3,8 @@
 # An example CGI script to use hgweb, edit as necessary
 
 import cgitb, os, sys
+cgitb.enable()
+
 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
 from mercurial import hgweb