--- ** [tickets:#5270] Code browser sometimes shows a file change like an addition** **Status:** closed **Milestone:** unreleased **Created:** Sun Nov 11, 2012 10:06 PM UTC by Anonymous **Last Updated:** Tue Feb 03, 2015 04:12 AM UTC **Owner:** nobody **Attachments:** - [code_browser_screen.jpg](https://forge-allura.apache.org/p/allura/tickets/5270/attachment/code_browser_screen.jpg) (107.0 kB; image/jpeg) *Originally created by:* kambi It my https://sourceforge.net/p/castle-engine/ project (using SVN repo), the code changes are sometimes shown like an addition. For example the recent commit https://sourceforge.net/p/castle-engine/code/11982/ shows like a file /trunk/castle/data/creatures/werewolf/resource.xml was added in this revision: /trunk/castle/data/creatures/werewolf/resource.xml Diff --- a +++ b/trunk/castle/data/creatures/werewolf/resource.xml @@ -0,0 +1,42 @@ .... (the full file contents follow) As you can see, it shows an empty file ("a") change into new file ("b/trunk/castle/data/creatures/werewolf/resource.xml"). (Attaching screenshot.) Refreshing the page https://sourceforge.net/p/castle-engine/code/11982/ shows the correct change: /trunk/castle/data/creatures/werewolf/resource.xml Diff --- a/trunk/castle/data/creatures/werewolf/resource.xml +++ b/trunk/castle/data/creatures/werewolf/resource.xml @@ -23,7 +23,6 @@ ... (short diff follows) "svn diff" always shows correctly that the file was only modified (only a single line deleted) in this revision by appropriate "svn diff" command: svn diff svn+ssh://[email protected]/p/castle-engine/code/trunk/castle/data/creatures/werewolf/resource.xml -r11981:11982 Also clicking on the "Diff" link to see a single file change in code browser , on https://sourceforge.net/p/castle-engine/code/11982/tree//trunk/castle/data/creatures/werewolf/resource.xml?diff=4e4d28440594ca25fa000cb0:11981 , shows the correct 1-line change. Unfortunately, I can't provide an exact recipe to reproduce this issue. It occasionally appears, for *some* (not all) files in a single commit. Refreshing the page always fixes the issue, showing the good diff. But the problem repeats often for new commits. --- Sent from forge-allura.apache.org because [email protected] is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
