Changes between Version 12 and Version 13 of 1.1/TracRepositoryAdmin
- Timestamp:
- Jun 29, 2015, 8:29:03 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.1/TracRepositoryAdmin
v12 v13 96 96 Note that the default repository has an empty name, so it will likely need to be quoted when running `trac-admin` from a shell. Alternatively, the name "`(default)`" can be used instead, for example when running `trac-admin` in interactive mode. 97 97 98 == Repository caching 99 100 The Subversion and Git repository connectors support caching, which improves the performance browsing the repository, viewing logs and viewing changesets. Cached repositories must be [#Synchronization synchronized]; either explicit or implicit synchronization can be used. When searching changesets, only cached repositories are searched. 101 102 Subversion repositories are cached unless the type is `direct-svnfs`. Git repositories are cached when `[git]` [wiki:TracIni#git-section cached_repository] is `true`. 98 103 99 104 == Repository synchronization #Synchronization … … 161 166 {{{#!sh 162 167 #!/bin/sh 168 tracenv=/path/to/env # change with your Trac environment's path 169 repos= # change with your repository's name 163 170 while read oldrev newrev refname; do 164 171 if [ "$oldrev" = 0000000000000000000000000000000000000000 ]; then … … 166 173 else 167 174 git rev-list --reverse "$newrev" "^$oldrev" -- 168 fi | xargs trac-admin /path/to/env changeset added <repos>175 fi | xargs trac-admin "$tracenv" changeset added "$repos" 169 176 done 170 177 }}}