Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://kodomo.cmm.msu.su/trac/tanchiki/wiki/TracImport?action=diff&version=1
Äàòà èçìåíåíèÿ: Unknown
Äàòà èíäåêñèðîâàíèÿ: Mon Apr 11 03:30:35 2016
Êîäèðîâêà: IBM-866
TracImport (diff) òÀÓ Tanchiki

Changes between Initial Version and Version 1 of TracImport


Ignore:
Timestamp:
11/20/10 16:22:18 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracImport

    v1 v1 ˆà
    ˆà1= Importing ticket data =ˆà
    ˆà2ˆà
    ˆà3== Bugzilla ==ˆà
    ˆà4ˆà
    ˆà5Ticket data can be imported from Bugzilla using the [http://trac.edgewall.org/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] script, available in the contrib/ directory of the Trac distribution.ˆà
    ˆà6ˆà
    ˆà7{{{ˆà
    ˆà8$ bugzilla2trac.pyˆà
    ˆà9bugzilla2trac - Imports a bug database from Bugzilla into Trac.ˆà
    ˆà10ˆà
    ˆà11Usage: bugzilla2trac.py [options]ˆà
    ˆà12ˆà
    ˆà13Available Options:ˆà
    ˆà14  --db <MySQL dbname>              - Bugzilla's databaseˆà
    ˆà15  --tracenv /path/to/trac/env      - full path to Trac db environmentˆà
    ˆà16  -h | --host <MySQL hostname>     - Bugzilla's DNS host nameˆà
    ˆà17  -u | --user <MySQL username>     - effective Bugzilla's database userˆà
    ˆà18  -p | --passwd <MySQL password>   - Bugzilla's user passwordˆà
    ˆà19  -c | --clean                     - remove current Trac tickets before importingˆà
    ˆà20  --help | help                    - this help infoˆà
    ˆà21ˆà
    ˆà22Additional configuration options can be defined directly in the script.ˆà
    ˆà23}}}ˆà
    ˆà24ˆà
    ˆà25Currently, the following data is imported from Bugzilla:ˆà
    ˆà26ˆà
    ˆà27  * bugsˆà
    ˆà28  * bug activity (field changes)ˆà
    ˆà29  * bug attachmentsˆà
    ˆà30  * user names and passwords (put into a htpasswd file)ˆà
    ˆà31ˆà
    ˆà32The script provides a number of features to ease the conversion, such as:ˆà
    ˆà33ˆà
    ˆà34  * PRODUCT_KEYWORDS:  Trac doesn't have the concept of products, so the script provides the ability to attach a ticket keyword instead.ˆà
    ˆà35ˆà
    ˆà36  * IGNORE_COMMENTS:  Don't import Bugzilla comments that match a certain regexp.ˆà
    ˆà37ˆà
    ˆà38  * STATUS_KEYWORDS:  Attach ticket keywords for the Bugzilla statuses not available in Trac.  By default, the 'VERIFIED' and 'RELEASED' Bugzilla statuses are translated into Trac keywords.ˆà
    ˆà39ˆà
    ˆà40For more details on the available options, see the configuration section at the top of the script.ˆà
    ˆà41ˆà
    ˆà42== Sourceforge ==ˆà
    ˆà43ˆà
    ˆà44Ticket data can be imported from Sourceforge using the [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution.ˆà
    ˆà45ˆà
    ˆà46== Mantis ==ˆà
    ˆà47ˆà
    ˆà48NB! The mantis2trac script now lives at http://trac-hacks.org/wiki/MantisImportScript . You can always get the latest version from http://trac-hacks.org/changeset/latest/mantisimportscript?old_path=/&filename=mantisimportscript&format=zipˆà
    ˆà49ˆà
    ˆà50Mantis bugs can be imported using the attached script.ˆà
    ˆà51ˆà
    ˆà52Currently, the following data is imported from Mantis:ˆà
    ˆà53  * bugsˆà
    ˆà54  * bug commentsˆà
    ˆà55  * bug activity (field changes)ˆà
    ˆà56  * attachments (as long as the files live in the mantis db, not on the filesystem) ˆà
    ˆà57ˆà
    ˆà58If you use the script, please read the NOTES section (at the top of the file) and make sure you adjust the config parameters for your environment.ˆà
    ˆà59ˆà
    ˆà60mantis2trac.py has the same parameters as the bugzilla2trac.py script:ˆà
    ˆà61{{{ˆà
    ˆà62mantis2trac - Imports a bug database from Mantis into Trac.ˆà
    ˆà63ˆà
    ˆà64Usage: mantis2trac.py [options] ˆà
    ˆà65ˆà
    ˆà66Available Options:ˆà
    ˆà67  --db <MySQL dbname>              - Mantis databaseˆà
    ˆà68  --tracenv /path/to/trac/env      - Full path to Trac db environmentˆà
    ˆà69  -h | --host <MySQL hostname>     - Mantis DNS host nameˆà
    ˆà70  -u | --user <MySQL username>     - Effective Mantis database userˆà
    ˆà71  -p | --passwd <MySQL password>   - Mantis database user passwordˆà
    ˆà72  -c | --clean                     - Remove current Trac tickets before importingˆà
    ˆà73  --help | help                    - This help infoˆà
    ˆà74ˆà
    ˆà75Additional configuration options can be defined directly in the script.ˆà
    ˆà76}}} ˆà
    ˆà77ˆà
    ˆà78== Other ==ˆà
    ˆà79ˆà
    ˆà80Since trac uses a SQL database to store the data, you can import from other systems by examining the database tables. Just go into [http://www.sqlite.org/sqlite.html sqlite] command line to look at the tables and import into them from your application.ˆà
    ˆà81ˆà
    ˆà82=== Using a comma delimited file - CSV ===ˆà
    ˆà83See [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)ˆà
    ˆà84ˆà