wiki:HgDirManagerPlugin

Version 1 (modified by avakar, 6 years ago) (diff)

New hack HgDirManagerPlugin, created by avakar

Integrate a directory of Mercurial repositories

Description

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

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

Source

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

Example

Add the following to your trac.ini.

[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 /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

9457 by avakar on 2010-11-19 12:54:41
New hack HgDirManagerPlugin, created by avakar
(more)

Author/Contributors

Author: avakar
Maintainer: avakar
Contributors: