Changes between Version 4 and Version 5 of TipAndDoc/project/trac/repository


Ignore:
Timestamp:
Jan 4, 2011 7:24:20 PM (10 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/project/trac/repository

    v4 v5  
    5252 * wiki:TracRepositoryAdmin#Migration 
    5353 
     54 == before migration == 
    5455 * 4 repositories and 2 tracs 
     56  1. ls -ld /var/svn/lab/* 
     57{{{ 
     58drwxr-x--x 7 root www-data 90 2010-09-19 11:31 /var/svn/lab/lab 
     59drwxr-x--x 7 root www-data 90 2011-01-02 19:02 /var/svn/lab/lab.test 
     60drwxr-x--x 7 root www-data 90 2010-12-16 16:37 /var/svn/lab/test 
     61drwxr-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{{{ 
     65drwxr-x--x 9 root www-data 124 2009-06-04 16:14 /var/trac/lab/lab 
     66drwxr-x--x 9 root www-data 124 2010-12-16 17:02 /var/trac/lab/test 
     67}}} 
    5568  * リポジトリとTracのリスト[[br]][[Image(svn-list.png, 33%)]] [[Image(single-list.png, 33%)]] 
    5669  * Tracのリポジトリブラウザとタイムライン[[br]][[Image(single-browser.png, 33%)]] [[Image(single-timeline.png, 33%)]] 
     
    193206  1. sudo ln -s test /var/trac/lab/test2 
    194207  * ln -sを使って、post-commitが正常に「test」を更新できるようにする 
     208    1. ls -ld /var/trac/lab/* 
     209{{{ 
     210drwxr-x--x 9 root www-data 124 2009-06-04 16:14 /var/trac/lab/lab 
     211lrwxrwxrwx 1 root root       4 2011-01-03 23:28 /var/trac/lab/lab.test -> test 
     212drwxr-x--x 9 root www-data 124 2010-12-16 17:02 /var/trac/lab/test 
     213lrwxrwxrwx 1 root root       4 2011-01-03 23:28 /var/trac/lab/test2 -> test 
     214}}} 
    195215  * 副作用として、「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 
     240REPOS="$1" 
     241REV="$2" 
     242 
     243# "$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf 
     244 
     245PROJECT_NAME=`basename $REPOS` 
     246DIRNAME=`dirname $REPOS` 
     247SUB_ROOTDIR=`basename $DIRNAME` 
     248 
     249export PYTHON_EGG_CACHE="/tmp" 
     250export 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 
    196255 1. add .tracignore 
    197256  1. sudo vim /path/to/config/files/trac/conf/lab.tracignore