comparison mercurial/hgweb.py @ 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 e5d769afd3ef
children 03f27b1381f9
comparison
equal deleted inserted replaced
390:50aea13227a2 391:5f65a108a559
3 # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net> 3 # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net>
4 # Copyright 2005 Matt Mackall <mpm@selenic.com> 4 # Copyright 2005 Matt Mackall <mpm@selenic.com>
5 # 5 #
6 # This software may be used and distributed according to the terms 6 # This software may be used and distributed according to the terms
7 # of the GNU General Public License, incorporated herein by reference. 7 # of the GNU General Public License, incorporated herein by reference.
8
9 # useful for debugging
10 import cgitb
11 cgitb.enable()
12 8
13 import os, cgi, time, re, difflib, sys, zlib 9 import os, cgi, time, re, difflib, sys, zlib
14 from mercurial.hg import * 10 from mercurial.hg import *
15 from mercurial.ui import * 11 from mercurial.ui import *
16 12