Edgewall Software

Changes between Version 12 and Version 13 of 1.1/TracRepositoryAdmin


Ignore:
Timestamp:
Jun 29, 2015, 8:29:03 PM (9 years ago)
Author:
Ryan J Ollos
Comment:

Merged TracRepositoryAdmin@41 and TracRepositoryAdmin@42.

Legend:

Unmodified
Added
Removed
Modified
  • 1.1/TracRepositoryAdmin

    v12 v13  
    9696Note 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.
    9797
     98== Repository caching
     99
     100The 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
     102Subversion repositories are cached unless the type is `direct-svnfs`. Git repositories are cached when `[git]` [wiki:TracIni#git-section cached_repository] is `true`.
    98103
    99104== Repository synchronization #Synchronization
     
    161166{{{#!sh
    162167#!/bin/sh
     168tracenv=/path/to/env     # change with your Trac environment's path
     169repos=                   # change with your repository's name
    163170while read oldrev newrev refname; do
    164171    if [ "$oldrev" = 0000000000000000000000000000000000000000 ]; then
     
    166173    else
    167174        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"
    169176done
    170177}}}