Thursday, January 27, 2011

How do I enable ZIP/TAR/BZ2 Download Buttons in my Mercurial HGWEB?

I recently got Mercurial running on my server, shared via Apache. When I browse to the repos via the web, I see a list of my repositories with Atom/RSS links, but no download buttons.

My question is, how do enable the purple "ZIP", "TAR", "BZ2" download buttons (example: http://hg.pablotron.org/)? I've been trying to find documentation for this, but must be looking in all the wrong places.

I am running Mercurial v1.6.3 on Ubuntu 10.04 with Apache 2.2.14. Thx!

  • From the hgrc manpage, put the following in your configuration file:

    [web]
    allow_archive = bz2, gz, zip 
    
    caseyamcl : Thx! Sometimes the obvious eludes...
    From tonfa

0 comments:

Post a Comment