Edgewall Software

Changes between Version 29 and Version 30 of TracRepositoryAdmin


Ignore:
Timestamp:
Apr 2, 2013, 2:01:17 AM (11 years ago)
Author:
Thijs Triemstra
Comment:

expand git explicit sync docs

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v29 v30  
    9090
    9191=== Explicit synchronization === #ExplicitSync
    92 This is the preferred method of repository synchronization. It requires setting the `[trac]  repository_sync_per_request` option in [wiki:TracIni#trac-section trac.ini] to an empty value, and adding a call to `trac-admin` in the post-commit hook of each repository. Additionally, if a repository allows changing revision metadata, a call to `trac-admin` must be added to the post-revprop-change hook as well.
     92This is the preferred method of repository synchronization. It requires setting the `[trac]  repository_sync_per_request` option in [wiki:TracIni#trac-section trac.ini] to an empty value, and adding a call to `trac-admin` in the `post-commit` hook of each repository. Additionally, if a repository allows changing revision metadata, a call to `trac-admin` must be added to the `post-revprop-change` hook as well.
    9393
    9494 `changeset added <repos> <rev> [...]`::
     
    100100The `<repos>` argument can be either a repository name (use "`(default)`" for the default repository) or the path to the repository.
    101101
    102 Note that you may have to set the environment variable PYTHON_EGG_CACHE to the same value as was used for the web server configuration before calling trac-admin, if you changed it from its default location. See [wiki:TracPlugins Trac Plugins] for more information.
     102Note that you may have to set the environment variable `PYTHON_EGG_CACHE` to the same value as was used for the web server configuration before calling `trac-admin`, if you changed it from its default location. See [wiki:TracPlugins Trac Plugins] for more information.
    103103
    104104==== Subversion ====
     
    140140==== Git ====
    141141
    142 Git hooks can be used in the same way for explicit syncing of git repositories. Add the following to `.git/hooks/post-commit`:
     142Git hooks can be used in the same way for explicit syncing of Git repositories. Add the following to `.git/hooks/post-commit`:
    143143{{{#!sh
     144#!/bin/sh
    144145REV=$(git rev-parse HEAD)
    145 trac-admin /path/to/env changeset added <my-repository> $REV
     146trac-admin /path/to/env changeset added <repos> $REV
    146147}}}
     148
     149The `<repos>` argument can be either a repository name (use "`(default)`" for the default repository) or the path to the repository.
    147150
    148151==== Mercurial ====