Customizing Mercurial

I really like Mercurial (as in “distributed source control management tool” not as in a metallic element), but I am not that fond of the default look and feel of the web-publishing tool: hgwebdir. So, I am in the process of modifying and creating a custom template using a bit of jquery magic.

Check it out at http://martin.swende.se/hg/ .
Theme is "black-tie" from jquery-ui

I added activity-tabs to all projects, which fetches the latest changelogs with xhr. Some more features that I am working on are support for displaying screenshots and content from README and INSTALL files. This requires some messing with commit-hooks, in order to get hg to extract the relevant files, generate thumbnails and create xml or json-descriptions of what content is available (aswell as publishing that info on the webserver).

The actual ui design comes from jquery-ui api, they have a lot of variants and it it easy to roll your own with the themeroller : http://jqueryui.com/themeroller/. Once I have revamped the other pages aswell, I may submit it to the folks at Selenic and see if they like it.

Leave a Reply