Changes between Version 4 and Version 5 of TipAndDoc/project/trac/repository
- Timestamp:
- Jan 4, 2011 7:24:20 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/project/trac/repository
v4 v5 52 52 * wiki:TracRepositoryAdmin#Migration 53 53 54 == before migration == 54 55 * 4 repositories and 2 tracs 56 1. ls -ld /var/svn/lab/* 57 {{{ 58 drwxr-x--x 7 root www-data 90 2010-09-19 11:31 /var/svn/lab/lab 59 drwxr-x--x 7 root www-data 90 2011-01-02 19:02 /var/svn/lab/lab.test 60 drwxr-x--x 7 root www-data 90 2010-12-16 16:37 /var/svn/lab/test 61 drwxr-x--x 7 root www-data 90 2010-12-19 22:45 /var/svn/lab/test2 62 }}} 63 1. ls -ld /var/trac/lab/* 64 {{{ 65 drwxr-x--x 9 root www-data 124 2009-06-04 16:14 /var/trac/lab/lab 66 drwxr-x--x 9 root www-data 124 2010-12-16 17:02 /var/trac/lab/test 67 }}} 55 68 * リポジトリとTracのリスト[[br]][[Image(svn-list.png, 33%)]] [[Image(single-list.png, 33%)]] 56 69 * Tracのリポジトリブラウザとタイムライン[[br]][[Image(single-browser.png, 33%)]] [[Image(single-timeline.png, 33%)]] … … 193 206 1. sudo ln -s test /var/trac/lab/test2 194 207 * ln -sを使って、post-commitが正常に「test」を更新できるようにする 208 1. ls -ld /var/trac/lab/* 209 {{{ 210 drwxr-x--x 9 root www-data 124 2009-06-04 16:14 /var/trac/lab/lab 211 lrwxrwxrwx 1 root root 4 2011-01-03 23:28 /var/trac/lab/lab.test -> test 212 drwxr-x--x 9 root www-data 124 2010-12-16 17:02 /var/trac/lab/test 213 lrwxrwxrwx 1 root root 4 2011-01-03 23:28 /var/trac/lab/test2 -> test 214 }}} 195 215 * 副作用として、「test」が三つ表示される[[br]][[Image(trac-env-symlink-list.png, 33%)]] 216 1. /path/to/config/files/svn/hooks/post-commit 217 {{{#!sh 218 #!/bin/sh 219 220 # POST-COMMIT HOOK 221 # 222 # The post-commit hook is invoked after a commit. Subversion runs 223 # this hook by invoking a program (script, executable, binary, etc.) 224 # named 'post-commit' (for which this file is a template) with the 225 # following ordered arguments: 226 # 227 # [1] REPOS-PATH (the path to this repository) 228 # [2] REV (the number of the revision just committed) 229 # 230 231 (snip) 232 233 # Here is an example hook script, for a Unix /bin/sh interpreter. 234 # For more examples and pre-written hooks, see those in 235 # /usr/share/subversion/hook-scripts, and in the repository at 236 # http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and 237 # http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/ 238 239 240 REPOS="$1" 241 REV="$2" 242 243 # "$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf 244 245 PROJECT_NAME=`basename $REPOS` 246 DIRNAME=`dirname $REPOS` 247 SUB_ROOTDIR=`basename $DIRNAME` 248 249 export PYTHON_EGG_CACHE="/tmp" 250 export TRAC_ENV="/var/trac/${SUB_ROOTDIR}/${PROJECT_NAME}" 251 /path/to/config/files/trac/contrib/trac-svn-hook $REPOS $REV 252 }}} 253 1. /path/to/config/files/trac/contrib/trac-svn-hook 254 * trac:source:/tags/trac-0.12.1/contrib/trac-svn-hook 196 255 1. add .tracignore 197 256 1. sudo vim /path/to/config/files/trac/conf/lab.tracignore