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").
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@example.com/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.
Log in to post a comment.