Edgewall Software
Modify

Opened 9 years ago

Closed 8 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
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc:
Release Notes:
API 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@… 9 years ago.
resolve_special.patch (1.7 KB) - added by me@… 8 years ago.
Patch for moin2trac.py to resolve escaped special characters in page names.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by munro@…

comment:1 Changed 8 years ago by sid

  • Summary changed from moin2trac.py, a script for importing a moin wiki's full history to [PATCH] moin2trac.py, a script for importing a moin wiki's full history

comment:2 Changed 8 years ago by me@…

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

Changed 8 years ago by me@…

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

comment:3 Changed 8 years ago by cboos

  • Resolution set to wontfix
  • Status changed from new to closed

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.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from jonas 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.