Integrate a directory of Mercurial repositories
This plugin allows the ability to add a whole directory of Mercurial repositories to Trac. It also adds the optional ability to create and delete repositories. Mercurial is a free, distributed source control management tool, which itself is GPL-licensed.
The plugin requires Trac-0.12, which supports multiple repositories.
If you have any issues, create a new ticket.
Download and Installation
You will have to download and install TracMercurial first.
Once that's done, checkout the sources for the HgDirManager plugin from the repository.
Use the setup script to create an egg, which you can then copy to the
plugin directory in your Trac environment:
hg clone http://bitbucket.org/avakar/trac-hgdirmanager cd trac-hgdirmanager python ./setup.py bdist_egg
Add the following to your
[hgdir] 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
In the unlikely case you want to give your users the ability to irreversibly delete non-empty repositories, give them both