RFC: Managing Mercurial Repositories Remotely

Adis Nezirovic adis at linux.org.ba
Tue Feb 19 17:15:38 CST 2008


For simple stuff, a simple CGI script might be enough?

If you're interested, I can share script I use. It allows authenticated
users to create, delete or clone repositories, directly on the server
(allowed actions for each user is specified in INI file).
It also creates basic hgrc file, suitable for web. (user, desc,
allow_push, etc.)

Thanks to Apache's mod_authn_anon, ordinary visitors can still browse
repositories.

Script: http://linux.org.ba/~adis/hgadmin.cgi
Config file: http://linux.org.ba/~adis/hgadmin.conf
Apache config: http://linux.org.ba/~adis/httpd-vhosts.conf
(for hgwebdir.wsgi and hgadmin.cgi)

It's not very pretty, but works for me.
(my first, and probably the last CGI app, so pardon my ignorance)

Best regards,
Adis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080220/19162e2e/attachment.pgp 


More information about the Mercurial mailing list