Search the text of source code in your Trac repositories (0.12 and up)
Project description
To install:
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.
Changelog
0.5 (2013-01-15)
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)
0.4 (2013-01-11)
- Errors will no longer occur when repositories or files are removed from the underlying
system but still referenced in the search backend’s list of search results. (http://trac-hacks.org/ticket/9791, http://trac-hacks.org/ticket/10792, http://trac-hacks.org/ticket/10793)
Removed broken index on text contents for new installations (http://trac-hacks.org/ticket/10619)
0.3 (2012-09-28)
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)
0.2.1 (2012-02-17)
Supports Trac 0.12 for real this time (http://trac-hacks.org/ticket/9803)
0.2 (2012-02-13)
Now supports Trac 0.12 as well as 0.13 (http://trac-hacks.org/ticket/9786)
0.1 (2012-02-01)
First release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for trac-MultiRepoSearchPlugin-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d51a56b8941078d11334d6974552490cf83cc95b7ca106f8144ce640b3a2877 |
|
MD5 | 1275a047e1ba0fdcd999d5a99d123780 |
|
BLAKE2b-256 | 49d4d3e6762c64162b683b04dd915b733e9d591d5579123f174078db0198063b |