https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-11-13T03:28:55ZRedmineRedmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=223442010-11-13T03:28:55ZMichał Wróbel
<ul></ul><p>The problem results from the timestamps' format change from "seconds since epoch" to "microseconds since epoch" in <a href="http://trac.edgewall.org/wiki/TracDev/ReleaseNotes/0.12" class="external">Trac 0.12</a></p>
<p>While trying to migrate my Trac environments I got straight down to the code and reinvented the wheel by making <a href="https://github.com/xmxwx/redmine/commit/5428853f7f4984ded4ab3ec669c50d8c76026c81" class="external">a similar patch</a></p>
<p>I am pretty sure that neither mine nor Michalis' one do not remain compatible with trac 0.11, since they neither check the version of trac database schema nor perform any heurestics on the timestamps themselves. Before merging into mainstream, of course this needs to be done.</p> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=223602010-11-13T10:38:35ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>If someone can send me a trac-0.12 database containing some sample data, I can try to fix it.</p> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=238072011-01-08T22:02:40ZBlake Matheny
<ul></ul><p>The trac migration script also does not handle the new trac 0.12 syntax for commit messages via the commit hook scripts. Pre 0.12, commit messages were of the form<br /><pre>
{{{
(In [\d+]) Commit message.
}}}
</pre><br />With the multi-repository support in version 0.12 the message changed to:<br /><pre>
In [(\d+)/(\S+)]:
{{{
#!CommitTicketReference repository="\S+" revision="\d+"
Commit message
}}}
</pre></p>
<p>The following replacement addresses this issue while maintaining revision links (place before the "# Revision links" comment):<br /><pre>
commit_re = /^In \[(\d+)\/\S+\]:[\r\n]+\{\{\{[\r\n]+#!CommitTicketReference repository="\S+" revision="\d+"[\r\n]+(.*)[\r\n]*\}\}\}[\r\n]*/m
text = text.gsub(commit_re, '(In [\1]) \2')
</pre><br />This just basically converts the new commit message style to the old one.</p> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=258792011-03-03T13:45:07ZEtienne Massip
<ul><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=466332013-03-13T15:47:33ZJohannes Weberhofer
<ul></ul><p>This problem exists since trac database version 23 (see <a class="external" href="http://trac.edgewall.org/attachment/ticket/6466/6466-microsecond-times-r8770.patch">http://trac.edgewall.org/attachment/ticket/6466/6466-microsecond-times-r8770.patch</a> ).<br />"trac.system" table should be checked; when "database_version" has an "value" > 22, all time-values should be divided by 1000000, as they have been converted to microseconds.</p> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=508692013-07-29T14:51:21ZCraig Rodrigues
<ul></ul><p>Can you try this patch:<br /><a class="external" href="http://www.redmine.org/issues/14567">http://www.redmine.org/issues/14567</a></p> Redmine - Patch #5764: migrate_from_trac does not support trac 0.12https://www.redmine.org/issues/5764?journal_id=508932013-07-31T09:16:51ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-1 priority-4 priority-default" href="/issues/14567">Patch #14567</a>: migrate_from_trac.rake does not convert timestamps in Trac database version 23</i> added</li></ul>