https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-09-30T14:06:42ZRedmineRedmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=326132011-09-30T14:06:42ZJens Krämerjk@jkraemer.net
<ul><li><strong>File</strong> <a href="/attachments/6614">invert_project_repository_relationship.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6614/invert_project_repository_relationship.diff">invert_project_repository_relationship.diff</a> added</li></ul> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=326142011-09-30T14:11:27ZJens Krämerjk@jkraemer.net
<ul></ul><p>relates to issue <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: git references leaking from subproject to project (New)" href="https://www.redmine.org/issues/6857">#6857</a></p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=326172011-09-30T16:27:54ZJens Krämerjk@jkraemer.net
<ul><li><strong>File</strong> <a href="/attachments/6616">invert_project_repository_relationship_2.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6616/invert_project_repository_relationship_2.diff">invert_project_repository_relationship_2.diff</a> added</li></ul> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=349572011-12-21T16:24:43ZColin Mollenhour
<ul></ul><p>Also related to <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Define repositories independently from projects (New)" href="https://www.redmine.org/issues/9703">#9703</a>.</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=371972012-04-03T15:15:12ZRobert Rath
<ul><li><strong>File</strong> <a href="/attachments/7419">invert_project_repository_relationship_2-1.3-stable-9308.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7419/invert_project_repository_relationship_2-1.3-stable-9308.patch">invert_project_repository_relationship_2-1.3-stable-9308.patch</a> added</li></ul><p>Thank you Jens,</p>
<p>I have found this patch invaluable and have updated the patch against redmine-1.3-stable <a class="changeset" title="German translation updated by Hannes Meier (#10585)" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9308">r9308</a> for convenience.</p>
<pre><code>...Robert</code></pre> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=372902012-04-07T17:18:55Z勇刚 罗
<ul></ul><p>关联到 Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Multiple SCM per project (Closed)" href="https://www.redmine.org/issues/779">#779</a>: Multiple SCM per project</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=372912012-04-08T00:03:09ZJens Krämerjk@jkraemer.net
<ul></ul><p>I don't understand your comment ;-)</p>
<p>however this patch is <strong>not</strong> about multiple SCM per project but about multiple projects per SCM - so you can reference the same repository in multiple projects, i.e. one for development and one for exception tracking via the hoptoad_notifier-plugin.</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=372922012-04-08T00:04:19ZJens Krämerjk@jkraemer.net
<ul></ul><p><a class="user active" href="https://www.redmine.org/users/337">Robert Lemke</a> - very appreciated - think I'll need to upgrade that Redmine setup to 1.3 or even 1.4 soon...</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=445832013-01-16T15:35:56ZRoman Lukmanov
<ul></ul><p>Hi!</p>
<p>I've applied this patch (invert_project_repository_relationship_2-1.3-stable-9308.patch) and get the 500 error.<br />In log:<br /><pre>
[redmine log]# tail -15 production.log
EnabledModule Load (0.1ms) SELECT name FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 76)
Project Load (0.0ms) Mysql::Error: Unknown column 'projects.repository_id' in 'where clause': SELECT `projects`.id FROM `projects` WHERE (`projects`.`id` = 76) AND (`projects`.repository_id = NULL) LIMIT 1
ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'projects.repository_id' in 'where clause': SELECT `projects`.id FROM `projects` WHERE (`projects`.`id` = 76) AND (`projects`.repository_id = NULL) LIMIT 1):
app/controllers/repositories_controller.rb:41:in `edit'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
</pre></p>
<p>Redmine version is 1.3.2</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=454892013-02-10T05:03:49ZCharles Sporkman
<ul></ul><p>Anyone taken a stab at getting this working under 2.2.x yet?</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=513622013-08-22T14:24:02ZRobert Rath
<ul></ul><p>Roman Lukmanov wrote:</p>
<blockquote>
<p>Hi!</p>
<p>I've applied this patch (invert_project_repository_relationship_2-1.3-stable-9308.patch) and get the 500 error.<br />In log:<br />[...]</p>
<p>Redmine version is 1.3.2</p>
</blockquote>
<p>Hi Roman,</p>
<p>Did you apply the patch against checked out Redmine 1.3 svn revision 9308? If your checked out source is too far away from this revision I can not predict the behavior. Better to study the patch and manually patch if not a direct match.</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=513632013-08-22T14:28:04ZRobert Rath
<ul></ul><p>Greetings All,</p>
<p>I have just evaluated latest Redmine 2.3 stable and the old implementation has not changed. I might just take a shot at re-creating the patch. I am a little concerned about the added complexity of multiple SCM support per project.</p>
<p>... Robert</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=513642013-08-22T14:29:48ZRobert Rath
<ul></ul><p>Charles Sporkman wrote:</p>
<blockquote>
<p>Anyone taken a stab at getting this working under 2.2.x yet?</p>
</blockquote>
<p>Hi Chris,<br />Thinking about having a go on the current 2.3 stable build unless you have already done it. ;-)<br />... Robert</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=514082013-08-27T06:27:52ZRobert Rath
<ul></ul><p>My initial simple attempt at creating a Redmine 2.3 patch using Jens original code highlights the new complexity added by Redmine's recently added new multiple SCM per project capability. My up-ported patch simply patches the original code but does not correctly integrate into the new Redmine functionality</p>
<p>For my application I can live with the current 2.3 SCM structure however I still hate the fact that adding the same SCM to a new project takes a long time for large repositories to unnecessarily build the change-set over again.</p>
<p>I may still tackle this properly in the future if I really need it. In the mean time if anyone wants my non-functional 2.3 patch to play with then please ask.</p>
<p>... Robert Rath</p> Redmine - Patch #9359: invert project <-> repository relationshiphttps://www.redmine.org/issues/9359?journal_id=1100892023-05-18T09:15:53Zpasquale [:dedalus]
<ul></ul><p>+1<br />this patch greatly improves the user experience</p>