https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-08-12T12:45:47ZRedmineRedmine - Patch #2748: Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/2748?journal_id=105142009-08-12T12:45:47ZThomas Recloux
<ul></ul><p>What a wonderful Patch !</p>
<p>I successfully used your modified script on a 0.8.4 redmine.</p>
<p>Thanks a lot.</p>
<p>I just had to modify some details :</p>
<ul>
<li>Line 894, the constructor of the SvnExtendedAdapter has ony got four parameters, I removed the three last parameters :</li>
</ul>
<pre>
@scm ||= SvnExtendedAdapter.new @@svn_url, @@svn_url, @@svn_username, @@svn_password
</pre>
<ul>
<li>Redmine needs a space between the keyword "refs" and the issue number (#1234) in subversion commit messages. I added four substitutions in the "convert_wiki_text_mapping" method :
<ul>
<li><pre>text = text.gsub("refs#", "refs #")</pre></li>
<li><pre>text = text.gsub("Refs#", "refs #")</pre></li>
<li><pre>text = text.gsub("REFS#", "refs #")</pre></li>
<li><pre>text = text.gsub("ref#" , "refs #")</pre></li>
</ul></li>
</ul>
<p>I'm a beginner in Ruby and I hope this not too ugly :-)</p> Redmine - Patch #2748: Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/2748?journal_id=119142009-11-10T10:02:36ZMarcel Nadje
<ul></ul><p>Thanx for the nice path. The only problem I have is the false converting german umlauts. After running redmine:migrate_svn_commits alle ticket refs in log massages are successfully migrated but the german umlauts ä, ö, ü and ß are broken. How can I convert the germa umlauts?</p> Redmine - Patch #2748: Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/2748?journal_id=120502009-11-13T13:45:03ZMarcel Nadje
<ul></ul><p>Here is my solution. To enable correct german umlaut handling insert before the line<br />scm.set_message(@svn_url, commit.revision, newText)<br />the line<br />newText = Iconv.conv('CP1252', 'UTF-8', newText)</p> Redmine - Patch #2748: Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/2748?journal_id=149852010-03-08T20:58:22ZBryce Nordgren
<ul></ul><p>How do I vote for this one? I just spent an hour or so manually converting my numbered lists from trac! +1 +1 +1</p>