https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-01-12T17:54:37ZRedmineRedmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=66352009-01-12T17:54:37ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><blockquote>
<p>for example, when I try to check diff between <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/62/entry/trunk/app/controllers/account_controller.rb">source:/trunk/app/controllers/account_controller.rb@62</a> and <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/44/entry/trunk/app/controllers/account_controller.rb">source:/trunk/app/controllers/account_controller.rb@44</a> from <a class="external" href="http://www.redmine.org/repositories/changes/redmine/trunk/app/controllers/account_controller.rb">http://www.redmine.org/repositories/changes/redmine/trunk/app/controllers/account_controller.rb</a>, I'm getting above error.</p>
</blockquote>
<p>/trunk/app/controllers/account_controller.rb doesn't exist at <a class="changeset" title="- new controller "myController" - account/my_page moved to my/page - account/my_account mmoved to..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/62">r62</a>. That's why you get this error.<br />/trunk/redmine was moved to /trunk at <a class="changeset" title="trunk moved from /trunk/redmine to /trunk" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/67">r67</a>.</p>
<p>Reopen if needed.</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=66532009-01-13T01:38:20Zyoungseok yi
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>/trunk/app/controllers/account_controller.rb doesn't exist at <a class="changeset" title="- new controller "myController" - account/my_page moved to my/page - account/my_account mmoved to..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/62">r62</a>. That's why you get this error.<br />/trunk/redmine was moved to /trunk at <a class="changeset" title="trunk moved from /trunk/redmine to /trunk" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/67">r67</a>.</p>
</blockquote>
<p>Thanks JP! Now I can understand what has happened.</p>
<p>Subversion can see the all of history if <code>svn copy</code> or <code>svn move</code> has been used for moving /trunk/redmine to /trunk.(svn shares the history between branches)</p>
<p>I think the shelling out difference between <a class="changeset" title="* new report: project activity * "start date" and "% done" fields added on issues * project calen..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/44">r44</a> and <a class="changeset" title="form_for added in my/account view" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/66">r66</a> in <a href="http://www.redmine.org/repositories/changes/redmine/trunk/app/controllers/account_controller.rb" class="external">the history page of account_controller.rb</a> should be as bellow.</p>
<pre>
>svn diff -r 44:62 http://redmine.rubyforge.org/svn/trunk/app/controllers/account_controller.rb@HEAD
</pre>
<p>Because the given path is based on <strong>HEAD</strong>, not a specific revision.<br />This gives the correct history even though the /trunk/app/controllers/account_controller.rb doesn't exist before <a class="changeset" title="trunk moved from /trunk/redmine to /trunk" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/67">r67</a>.</p>
<p><ins>We need to differ the case for specific revision and HEAD</ins>. It would be better to regard [@REV] as a part of path.</p>
<p>p.s. the link <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/62/entry/trunk/app/controllers/account_controller.rb">source:/trunk/app/controllers/account_controller.rb@62</a> giving same error message. but it seems natural becasue the path doesn't exist at revision 62.</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=67222009-01-18T11:10:49ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>You're absolutely right. I think the solution is to add one more argument to the diff method to specify the revision of the given path. This will be HEAD in most cases, unless browsing the repository at a specific revision.</p>
<p>The svn diff command would be:</p>
<pre>
svn diff -r <identifier_to>:<identifier_from> <path>@<identifier>
</pre>
<p>Correct me if I'm wrong.</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=67802009-01-20T06:26:02Zyoungseok yi
<ul></ul><p>Thanks JP!<br />I agree with your solution. Maybe it would be important to check the other SCM also need 3rd arguement.</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=249422011-02-08T04:50:05ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Error message for some of view differences</i> to <i>Subversion: Error message for some of view differences</i></li><li><strong>Resolution</strong> deleted (<del><i>Invalid</i></del>)</li></ul> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=475792013-03-27T07:58:39ZEtienne Massip
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Confirmed</i></li><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=532802013-11-20T15:50:06ZMarc Mengel
<ul></ul><p>Is anyone looking at this for an upcoming release? Do we need a patch?</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=864352018-08-02T20:05:09ZGustavo Regal
<ul></ul><p>+1 Subversion</p> Redmine - Defect #2493: Subversion: Error message for some of view differenceshttps://www.redmine.org/issues/2493?journal_id=963442020-02-19T13:28:23ZJonas De Meulenaere
<ul></ul><p>+1</p>