Menu

Commit [r7964]  Maximize  Restore  History

MultiRepos: make it possible to retrieve a Repository by its directory, using `RepositoryManager(env).get_repository(dir)`.

This will simplify the writing of hooks, which can simply specify the repository directory (with the scope if needed), usually readily available inside the hook.

As an example, I've modified the trac-post-commit-hook.cmd to use the `repository notify` command and to take advantage of the above feature.

cboos 2009-03-22

changed /sandbox/multirepos/contrib/trac-post-commit-hook.cmd
changed /sandbox/multirepos/trac/versioncontrol/api.py
/sandbox/multirepos/contrib/trac-post-commit-hook.cmd Diff Switch to side-by-side view
Loading...
/sandbox/multirepos/trac/versioncontrol/api.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB