Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

#2068 closed enhancement (wontfix)

[PATCH] moin2trac.py, a script for importing a moin wiki's full history

Reported by: munro@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi

Please find attached moin2trac.py, which imports data from a moin wiki into trac. Maybe someone else will find it useful for migrating to trac in the future, so I am submitting it for consideration as a 'contrib' script, alongside bugzilla2trac.py (which we have also used in our migration, and patched, see ticket #2061).

Of course the trac-admin 'wiki load' function loads wiki pages in, but we wanted to preserve the full history (ie. the author, time, comments for each revision of each page) of our wiki, for a smooth transition from moin to trac as our in-house project management wiki.

Thomas Munro

Attachments (2)

moin2trac.py (2.8 KB ) - added by munro@… 19 years ago.
resolve_special.patch (1.7 KB ) - added by me@… 18 years ago.
Patch for moin2trac.py to resolve escaped special characters in page names.

Download all attachments as: .zip

Change History (5)

by munro@…, 19 years ago

Attachment: moin2trac.py added

comment:1 by sid, 18 years ago

Summary: moin2trac.py, a script for importing a moin wiki's full history[PATCH] moin2trac.py, a script for importing a moin wiki's full history

comment:2 by me@…, 18 years ago

Thank you for your script Thomas, it helped me a lot.

A slight modification I made though, was to resolve escaped special characters in page-paths. For example, a page named "Foo/Bar" (Bar being a sub-page of Foo) would have the path name "Foo(2f)Bar". My replaces character codes enclosed in parentheses with the respective character.

Still a quick hack, further adjustment may be needed. (Maybe a command-line option for enabling/disabling?)

Regards, Peter Dinges

by me@…, 18 years ago

Attachment: resolve_special.patch added

Patch for moin2trac.py to resolve escaped special characters in page names.

comment:3 by Christian Boos, 18 years ago

Resolution: wontfix
Status: newclosed

Such contributed scripts are better hosted on TracHacks than here.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.