The local Munich Internet Service Provider Linksystem München recently changed their internally used bug-tracking system from Mantis to Bugzilla, and thus had to migrate their whole bulk of existing bug reports to the new system. So I wrote this complete migration tool for them, and they decided to make it available freely, which allows me to distribute it on my homepage (it's not currently available from their web site).
You are allowed to use, modify, and distribute m2bz under the terms of — at your option — the GNU General Public License (version 2), or the Mozilla Public License (version 1.1).
The latest version of m2bz is 20030608. It works on the exact database structures used by Mantis 0.17.5 and Bugzilla 2.16.3.
The following additional software is required for m2bz
to work:
Perl 5.6+,
DBI,
Getopt::Mixed,
HTML::TreeBuilder,
HTML::FormatText.
| File | Version | Size | Description |
m2bz.pl |
20030608 | 28KB | m2bz: Mantis to Bugzilla Migration Tool |
Once you have set up the Bugzilla database, the usage of m2bz is trivial:
$ ./m2bz.pl --help Syntax: m2bz.pl [OPTION]... Options: -h, --help Display this help and exit. --hostname Host running the MySQL databases (default: localhost) --port Port on which MySQL is listening (default: 3306) --mantis-database Name of the Mantis database (default: mantis), --mantis-username Username and password used to connect to the Mantis --mantis-password database (default: root, <empty>) --bugzilla-database Name of the Bugzilla database (default: bugzilla), --bugzilla-username Username and password used to connect to the Bugzilla --bugzilla-password database (default: root, <empty>)
Note that the resulting Bugzilla bug numbers will not match the Mantis ones!
The Bugzilla database does not need to be empty. Conflicting items (users, projects, …) will not be overwritten, but will not be used as targets of references by any migrated items either. Such references will be directed to "unknown" dummy items instead, which will automatically be generated, one per class (users, projects, …). Warnings will be given for conflicts during the import.