Source

trac-multireposearch-plugin /

Filename Size Date modified Message
multireposearch
52 B
969 B
1.6 KB
737 B
78 B
695 B

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.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.