Changes between Version 1 and Version 2 of TracRepositoryAdmin
- Timestamp:
- 09/24/12 18:52:15 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRepositoryAdmin
v1 v2 17 17 18 18 ||='''Attribute''' =||='''Description''' =|| 19 ||`alias` ||\ \19 ||`alias` ||\ 20 20 ||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` ||\ 22 22 ||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` ||\ 24 24 ||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. || 25 25 ||`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. || … … 108 108 /usr/bin/trac-admin /path/to/env changeset added "$1" "$2" 109 109 }}} 110 Note: Ubuntu doesn't seem to like /usr/bin/trac-admin, so just use: 111 {{{#!sh 112 #!/bin/sh 113 export PYTHON_EGG_CACHE="/path/to/dir" 114 trac-admin /path/to/env/ changeset added "$1" "$2" 115 }}} 110 116 On Windows (`post-commit.cmd`): 111 117 {{{#!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" 113 119 }}} 114 120 … … 121 127 On Windows (`post-revprop-change.cmd`): 122 128 {{{#!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" 124 130 }}} 125 131 … … 136 142 }}} 137 143 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):144 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 [trac:source:mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible): 139 145 {{{#!ini 140 146 [hooks] … … 169 175 170 176 == 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 #9485for more information.177 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 [trac:ticket:9485 #9485] for more information. 172 178 173 179 1. Upgrade to the latest version of the TracMercurial plugin.
