Category Archives: Mercurial

Pretty colors: Syntax Highlighting in Mercurial

I recently switched my personal revision control system from subversion to mercurial. One of the great things about mercurial is the built-in web interface, but I missed the syntax highlighting that’s available in interfaces such as ViewVC. I’ve written a … Continue reading

Posted in Mercurial, Python | Leave a comment

Serving mercurial with mod_wsgi

Here’s a quick and easy recipe for serving a mercurial repository with mod_wsgi. Create a file called hgwebdir.wsgi with these contents: from mercurial.hgweb.request import wsgiapplication from mercurial.hgweb.hgwebdir_mod import hgwebdir def make_web_app(): return hgwebdir(“/path/to/hgweb.config”) application = wsgiapplication(make_web_app) Add it to the … Continue reading

Posted in Mercurial, WSGI | 4 Comments