Search the text of source code in your Trac repositories (0.12 and up)
pip install -r requirements.txt python setup.py develop
Add to your trac.conf:
[components] multireposearch.* = enabled
Upgrade your trac environment:
trac-admin path/to/env upgrade
Prepare all available repositories with an initial indexing:
trac-admin path/to/env multireposearch reindex_all
You will now be able to perform text searches of repository contents through the trac search UI.
As long as you have your trac post-commit or post-receive hooks properly configured, source will remain up-to-date.
Otherwise, to manually reindex a single repository, you ca run:
trac-admin path/to/env multireposearch reindex repo-name
Where repo-name is the name assigned to your repository in Trac.
- The plugin’s search source is now off by default, so Trac searches will not include source code results unless the user explicitly checks the “Source Repository” box on the search form. This way the plugin won’t impact performance of searches unless the user actually wants to search through source code. (This behavior may change in the future, but not until there exists a search backend that’s faster than unindexed full text search on a database column.)
- Selectively reindex only the files that were changed or added in each changeset, rather than reindexing the entire repository. (http://trac-hacks.org/ticket/9790)
- Removed broken index on text contents for new installations (http://trac-hacks.org/ticket/10619)
- Search backends are now expected to match against filenames as well as file contents. The provided SQLIndexer component has been updated to search for filenames as well. (http://trac-hacks.org/ticket/10298)
- Supports Trac 0.12 for real this time (http://trac-hacks.org/ticket/9803)
- Now supports Trac 0.12 as well as 0.13 (http://trac-hacks.org/ticket/9786)
- First release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size trac-MultiRepoSearchPlugin-0.6.tar.gz (5.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for trac-MultiRepoSearchPlugin-0.6.tar.gz