Version 1 (modified by Martin Vejnár, 7 years ago) (diff)

New hack HgDirManagerPlugin, created by avakar

Integrate a directory of Mercurial repositories


Allows one to add a whole directory of Mercurial repositories to Trac. Also adds the optional ability to create and delete repositories.

Bugs/Feature Requests

Existing bugs and feature requests for HgDirManagerPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:hgdirmanagerplugin here].


You can check out HgDirManagerPlugin from here using Subversion, or browse the source with Trac.


Add the following to your trac.ini.

base_path = /path/to/hg/repos
recurse = False
url_prefix = http://base/url/where/repos/are/mapped

You'll then see all Mercurial repos in base_path in the Trac's source browser.

Users that have REPO_CREATE privilege can create new repositories in that path by navigating to /newhgrepo page (you can add a link to your WikiStart page for example).

You can give users the REPO_DELETE privilege, which will allow them to delete empty repositories (navigate to /deletehgrepo/name-of-repo).

In the unlikely case you want to give your users the ability to irreversibly delete non-empty repositories, give them both REPO_DELETE and REPO_DELETE_NONEMPTY privileges.

Recent Changes

16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code
9457 by avakar on 2010-11-19 11:54:41
New hack HgDirManagerPlugin, created by avakar


Author: avakar
Maintainer: avakar