hgweb.cgi
changeset 391 5f65a108a559
parent 202 e875a0cf7f3a
child 2506 d0db3462d568
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()