Changes between Version 1 and Version 2 of TracRepositoryAdmin


Ignore:
Timestamp:
09/24/12 18:52:15 (13 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v1 v2  
    1717
    1818||='''Attribute''' =||='''Description''' =||
    19 ||`alias` ||\\
     19||`alias` ||\
    2020||A repository having an `alias` attribute is an alias to a real repository. All TracLinks referencing the alias resolve to the aliased repository. Note that multiple indirection is not supported, so an alias must always point to a real repository. The `alias` and `dir` attributes are mutually exclusive. ||
    21 ||`description` ||\\
     21||`description` ||\
    2222||The text specified in the `description` attribute is displayed below the top-level entry for the repository in the source browser. It supports WikiFormatting. ||
    23 ||`dir` ||\\
     23||`dir` ||\
    2424||The `dir` attribute specifies the location of the repository in the filesystem. It corresponds to the value previously specified in the option `[trac] repository_dir`. The `alias` and `dir` attributes are mutually exclusive. ||
    2525||`hidden` ||When set to `true`, the repository is hidden from the repository index page in the source browser. Browsing the repository is still possible, and links referencing the repository remain valid. ||
     
    108108/usr/bin/trac-admin /path/to/env changeset added "$1" "$2"
    109109}}}
     110Note: Ubuntu doesn't seem to like /usr/bin/trac-admin, so just use:
     111{{{#!sh
     112#!/bin/sh
     113export PYTHON_EGG_CACHE="/path/to/dir"
     114trac-admin /path/to/env/ changeset added "$1" "$2"
     115}}}
    110116On Windows (`post-commit.cmd`):
    111117{{{#!application/x-dos-batch
    112 @C:\\Python26\\Scripts\\trac-admin.exe C:\\path\\to\\env changeset added "%1" "%2"
     118@C:\Python26\Scripts\trac-admin.exe C:\path\to\env changeset added "%1" "%2"
    113119}}}
    114120
     
    121127On Windows (`post-revprop-change.cmd`):
    122128{{{#!application/x-dos-batch
    123 @C:\\Python26\\Scripts\\trac-admin.exe C:\\path\\to\\env changeset modified "%1" "%2"
     129@C:\Python26\Scripts\trac-admin.exe C:\path\to\env changeset modified "%1" "%2"
    124130}}}
    125131
     
    136142}}}
    137143
    138 For Mercurial, add the following entries to the `.hgrc` file of each repository accessed by Trac (if [trac:TracMercurial] is installed in a Trac `plugins` directory, download [source:plugins/0.13/mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible):
     144For Mercurial, add the following entries to the `.hgrc` file of each repository accessed by Trac (if [trac:TracMercurial] is installed in a Trac `plugins` directory, download [trac:source:mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible):
    139145{{{#!ini
    140146[hooks]
     
    169175
    170176== Migration from a single-repository setup (Mercurial) == #MigrationMercurial
    171 The following procedure illustrates a typical migration from a Mercurial single-repository setup to multiple repositories. Please note that at the time of writing, no initial resynchronization or any hooks are necessary for Mercurial repositories - see #9485 for more information.
     177The following procedure illustrates a typical migration from a Mercurial single-repository setup to multiple repositories. Please note that at the time of writing, no initial resynchronization or any hooks are necessary for Mercurial repositories - see [trac:ticket:9485 #9485] for more information.
    172178
    173179 1. Upgrade to the latest version of the TracMercurial plugin.