버전 1 (trac에 의해 수정됨, 16 년전) |
---|
티켓 데이타 추가하기
Bugzilla
Trac 배포버전의 contrib/ 디렉토리에 있는 bugzilla2trac.py 스크립트를 사용해서 Bugzilla의 티켓 데이타를 Trac에 추가할 수 있습니다.
$ bugzilla2trac.py bugzilla2trac - Imports a bug database from Bugzilla into Trac. Usage: bugzilla2trac.py [options] Available Options: --db <MySQL dbname> - Bugzilla's database --tracenv /path/to/trac/env - full path to Trac db environment -h | --host <MySQL hostname> - Bugzilla's DNS host name -u | --user <MySQL username> - effective Bugzilla's database user -p | --passwd <MySQL password> - Bugzilla's user password -c | --clean - remove current Trac tickets before importing --help | help - this help info Additional configuration options can be defined directly in the script.
현재 다음의 데이타가 Bugzilla로 부터 추가되어집니다.:
- bugs
- bug activity (field changes)
- bug attachments
- user names and passwords (put into a htpasswd file)
이 스크립트는 쉬운 변환을 위해서 다음과 같은 다양한 특징을 제공합니다.:
- PRODUCT_KEYWORDS: Trac은 대상에 대한 정보를 가지고 있지 않습니다. 그래서 대신에 이 스크립트는 티켓 키워드를 추가할 수 있는 기능을 제공합니다.
- IGNORE_COMMENTS: 특정 정규표현식과 일치하는 Bugzilla의 설명을 추가하지 않습니다.
- STATUS_KEYWORDS: Trac에서 이용할 수 없는 Bugzilla의 상태값에 대한 티켓 키워드를 추가합니다. 기본적으로 Bugzilla의 'VERIFIED'와 'RELEASED' 상태 키워드는 Trac의 키워드로 변환됩니다.
이용할 수 있는 옵션에 대한 상세한 설명은 스크립트의 위쪽에 있는 환경설정 섹션을 참고하십시오.
Sourceforge
Trac 배포버전의 contrib/ 디렉토리에 있는 sourceforge2trac.py 스크립트를 사용해서 Sourceforge의 티켓 데이타를 Trac에 추가할 수 있습니다.
Mantis
Mantis의 티켓들은 첨부된 스크립트를 이용해서 추가될 수 있습니다.
현재 다음의 데이타가 Mantis로 부터 추가되어집니다.:
- bugs
- bug comments
- bug activity (field changes)
첨부파일은 추가되지 않습니다. 만약 이 스크립트를 사용한다면, NOTES 섹션을 읽으십시오(파일의 맨 위에 있는). 그리고 현재 환경에 대해 설정 파라메터를 조정했는지 확인하십시오.
mantis2trac.py 스크립트는 bugzilla2trac.py 스크립트와 같은 파라메터를 가집니다.:
mantis2trac - Imports a bug database from Mantis into Trac. Usage: mantis2trac.py [options] Available Options: --db <MySQL dbname> - Mantis database --tracenv /path/to/trac/env - Full path to Trac db environment -h | --host <MySQL hostname> - Mantis DNS host name -u | --user <MySQL username> - Effective Mantis database user -p | --passwd <MySQL password> - Mantis database user password -c | --clean - Remove current Trac tickets before importing --help | help - This help info Additional configuration options can be defined directly in the script.
다른 것들
Trac이 데이타를 저장하기 위해서 SQL 데이타베이스를 사용하기 때문에, 데이타베이스 테이블을 테스트해서 다른 시스템으로부터 데이타를 추가할 수 있습니다. 테이블을 보고, 사용중인 프로그램으로부터 데이타를 테이블에 추가하기 위해서 sqlite 명령행을 이용하십시오.
Using a comma delimited file - CSV
See http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py for details. This approach is particularly useful if one needs to enter a large number of tickets by hand. (note that the ticket type type field, (task etc...) is also needed for this script to work with more recent Trac releases)