# HG changeset patch # User Robert McIntyre # Date 1319087744 25200 # Node ID be88a0c804e6934c7f0f914b076742b4820a512f initial commit diff -r 000000000000 -r be88a0c804e6 hgweb.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgweb.config Wed Oct 19 22:15:44 2011 -0700 @@ -0,0 +1,8 @@ + +[paths] +#cortex = /home/r/proj/cortex +pygar = /home/r/proj/pygar + + +[web] +baseurl = / diff -r 000000000000 -r be88a0c804e6 hgweb.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgweb.py Wed Oct 19 22:15:44 2011 -0700 @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# +# An example hgweb CGI script, edit as necessary +# See also http://mercurial.selenic.com/wiki/PublishingRepositories + +# Path to repo or hgweb config to serve (see 'hg help hgweb') +config = "/home/r/proj/bortreb/hgweb.config" + +# Uncomment and adjust if Mercurial is not installed system-wide: +#import sys; sys.path.insert(0, "/path/to/python/lib") + +# Uncomment to send python tracebacks to the browser if an error occurs: +#import cgitb; cgitb.enable() + +from mercurial import demandimport; demandimport.enable() +from mercurial.hgweb import hgweb, wsgicgi +application = hgweb(config) +wsgicgi.launch(application)