windows - SVN diff flagging all lines of code as new when PC programmer updates file recently committed by Mac Programmer -


In this scenario, I am currently running:

  1. Programmer A (using Mac Version of Dreamweaver) edits client.php file and creates that file in the production section of Project FU repository
  2. Programmer B (using the Windows version of Dreamweaver) contains a bug in it Fix file to file client.php file After that, he takes the cp clientInfo.php ../prod-branch/clientInfo.php to move the production branch from copying his work.
  3. Programmer B. To see if any change is made by SNB, SVN says that it has changed every line in the file!

Now, this is what I believe:

When the file is edited by Mac, then the DreamWire on Mac can be used for new Mac characters Together all windows change new characters so that it is readable in Dreamweaver. In short, Dreamweaver has changed every line in the file. Now, once committed, svn sees that the every line of the file has changed and marks the fact below. When Windows programmers make changes and new characters change again, SVN thinks that, then, the every line has changed.

My question is: How can we stop it from happening? I know there is no way to undo the damage done earlier, but I want to stop it from happening in the future. DreamWire has the option of setting this option to determine which line break type it uses.

Edit (on Mac: Dreamweaver) -> Preferences, Code format, Line break type.

To get the same settings for your users, and things should play a little better together. It would be better, if you can set your source control to ignore line break differences.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -