hgwebdir.cgi system to provide a web view of your mercurial repository, to customize the style like I did for http://hg.colas.nahaboo.net, a way to do it is (in debian, paths to adapt to your linux distribution): /usr/share/mercurial/templates/gitweb somewhere among your hg repositories. make a hg repository out of it
myhg. This way, when upgrades will change the distributed templates, you will just have to copy the new ones in your gitweb repo, commit, and pull+merge the changes into your myhg repo.
/usr/share/mercurial/templates/myhg
style=myhg . in your [web] section. Here is my file as an exemple: # system-wide mercurial configuration file # See hgrc(5) for more information [trusted] users=colas [web] baseurl=http://hg.colas.nahaboo.net/ contact=colas@nahaboo.net description=Open source software made by Colas Nahaboo maxchanges=16 staticurl=http://hg.colas.nahaboo.net/static/ style=colas
hgweb.config of the repositories.
hgrc is not cloned by hg. So you must add/edit it directly on the web repository, you cannot prepare it in advance in your work dir and expect it to be pushed on the web site on first creation
|
Navigate:
Changes -
Index -
Map -
Search -
Print version -
RSS Feed
Advanced: Backlinks - Children - Raw View - Email changes - History Admin: Admin - Statistics - Preferences - Notifications - Your Account Edit: Edit - Raw edit - Attach - Create New Topic - More topic actions |
Hacks.HgwebMercurialTemplateCustomization Topic revision: r10 - 2008-10-23 - 21:56:30 - ColasNahaboo Powered by Hosted by Linode on Debian |