Menu

Trac Commit Log


Commit Date  
[r7964] by cboos

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.

2009-03-22 14:32:48 Tree
[r7963] by cboos

MultiRepos: during notification, warn if specified reponame could not be related to any real repository.

2009-03-22 14:31:18 Tree
[r7962] by cboos

MultiRepos: fix the youngest_rev property of the !CachedRepository

2009-03-22 14:29:35 Tree
[r7961] by cboos

MultiRepos: added initial support for multiple cached repositories.

- introduction of a new ''repository'' command in TracAdmin
- `resync` subcommand is now `repository resync`
- new subcommand `notify` for new changeset notification
- the `RepositoryManager` now makes a distinction between "real" repositories and mere aliases to real repositories. Only real repositories get notified of new changesets and get resynced.
- a `Repository` can now report its actual base, if it's a scoped repository. This enable to identify different scoped repositories sharing the same base. Note that a scoped repository is a real repository and if its type requires it (e.g. svn), it will get cached on its own.

Note also that '''a schema upgrade is needed''' (database_version = 22).
The `node_change` and `revision` tables gain a new `repos` column of type text.

Patch written by Remy Blank on #7723.
Review, nit-picking and summary by me.

2009-03-22 14:27:44 Tree
[r7960] by cboos

MultiRepos: merged from 0.12dev [7949:7958/trunk]

2009-03-22 14:20:03 Tree
[r7959] by cboos

0.12dev: manual merge of the ChangeLog

2009-03-22 14:16:16 Tree
[r7958] by cboos

0.12dev: block [7954,7956] from being backported from 0.11-stable

2009-03-22 14:14:34 Tree
[r7957] by cboos

MultiRepos: clean-up changeset.html by shortening lines

2009-03-22 14:06:15 Tree
[r7956] by jonas

0.11-stable: Moving branch back into dev mode

2009-03-18 20:26:49 Tree
[r7955] by jonas

Tagging trac-0.11.4rc1

2009-03-18 20:21:52 Tree
Older >
MongoDB Logo MongoDB