Changes between Version 32 and Version 33 of RepoSearchPlugin
- Timestamp:
- Jul 22, 2015, 12:33:59 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RepoSearchPlugin
v32 v33 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Plugin for searching the source repository =3 2 4 == Description == 3 = Plugin for searching the source repository 4 5 == Description 5 6 6 7 This plugin allows users to search the source code repository (TracBrowser). See also TracSuposePlugin and MultiRepoSearchPlugin. … … 8 9 If you are using Trac 0.12+ with non-SVN repositories and/or multiple repositories, try using MultiRepoSearchPlugin. 9 10 10 == Bugs/Feature Requests ==11 == Bugs/Feature Requests 11 12 12 13 Existing bugs and feature requests for RepoSearchPlugin are … … 14 15 15 16 If you have any issues, create a 16 [ http://trac-hacks.org/newticket?component=RepoSearchPlugin&owner=rjollosnew ticket].17 [/newticket?component=RepoSearchPlugin new ticket]. 17 18 18 == Download == 19 [[TicketQuery(component=RepoSearchPlugin&group=type,format=progress)]] 20 21 == Download 19 22 20 23 Download the zipped source from [download:reposearchplugin here]. 21 24 22 == Source ==25 == Source 23 26 24 27 You can check out RepoSearchPlugin from [http://trac-hacks.org/svn/reposearchplugin here] using Subversion, or [source:reposearchplugin browse the source] with Trac. 25 28 26 == Installation ==29 == Installation 27 30 28 Depending on how you do the install, you may need to add a line to your trac.ini: 29 {{{ 30 #!ini 31 Depending on how you do the install, you may need to add a line to your `trac.ini` file: 32 {{{#!ini 31 33 [components] 32 34 tracreposearch.* = enabled … … 36 38 To use the repository search, users must have the `REPO_SEARCH` permission. 37 39 38 You can include and exclude parts of the repository by adding the following options to `trac.ini`:40 You can include and exclude parts of the repository by adding the following options to your `trac.ini` file: 39 41 40 {{{ 41 #!ini 42 {{{#!ini 42 43 [repo-search] 43 44 include = *.py:*.txt … … 47 48 The globs are separated by your operating systems path separator (`:` under UNIX, `;` under Windows) and each glob is matched against the ''full'' path. Hence `*/README` instead of just `README`. 48 49 49 Note that: 50 51 * If you specify an absolute path glob in an `include` or `exclude` clause for a Subversion repository, the leading slash has to be omitted, e.g. `exclude = trunk/old/*`. If you are using Perforce, the absolute paths need to start with two leading slashes, e.g `exclude=//depot/jobs/*`. 52 * If only `include` is specified the default is to exclude all other files. 50 '''Note''': 51 * If you specify an absolute path glob in an `include` or `exclude` clause for a Subversion repository, then the leading slash has to be omitted, e.g. `exclude = trunk/old/*`. If you are using Perforce, the absolute paths need to start with two leading slashes, e.g `exclude=//depot/jobs/*`. 52 * If only `include` is specified, then the default is to exclude all other files. 53 53 54 54 To speed up searches, an indexer is included. A full index will occur the first time you search the repository, which can take quite some time. Subsequent changesets will be incrementally indexed and should be pretty snappy. 55 55 56 The indexer is enabled by default and will use the `PYTHON_EGG_CACHE` dir to store its data. You can override this location by adding the following entry to your `trac.ini` :56 The indexer is enabled by default and will use the `PYTHON_EGG_CACHE` dir to store its data. You can override this location by adding the following entry to your `trac.ini` file: 57 57 58 {{{ 59 #!ini 58 {{{#!ini 60 59 [repo-search] 61 60 index = /my/trac/env/idx … … 64 63 The `index` option is a a directory that must be writable by the web server user. The indexer should cope well with changes to the include/exclude lists. Newly included files will be indexed, and newly excluded files will be removed from the `word:file` mapping table. 65 64 66 '''Note:''' Under Win32 you will need the [https://sourceforge.net/projects/pywin32/ pywin32 module] in orderfor the indexer to work.65 '''Note:''' Under Win32 you will need the [https://sourceforge.net/projects/pywin32/ pywin32 module] for the indexer to work. 67 66 68 == Recent Changes ==67 == Recent Changes 69 68 70 69 [[ChangeLog(reposearchplugin, 3)]] 71 70 72 == Author/Contributors ==71 == Author/Contributors 73 72 74 73 '''Author:''' [wiki:athomas] [[BR]]