I am trying to learn basics of version control by Eric Sink - http://ericsink.com/vcbe/vcbe_usletter_lo.pdf
I am on page 22 now. I\'ll describe the scenario for you. Two
When you have multiple people changing the same file at once, it's very possible for both to change the same lines. This is what happened to you. Sally changes the same lines Harry was changing. When Harry did svn update
, Subversion detected this, and is asking you what to do.
A word of warning: Sometimes Subversion is only looking for differences in a line between your version and their version, and not meaningful differences. For example, if the indentation of a line was changed, or spacing was different, or if you changed the line endings, Subversion will declare this as a conflict even though it probably isn't. This maybe why the book didn't find this issue, but you did. Doesn't mean you did anything wrong.
What to do? Subversion is giving you a few choices.
<<<<<<< .mine
foobar
=======
fubar
>>>>>>> .rxxx
This is showing you the changes in revision rxxx (what Sally did) look like vs. the changes you have (Harry's changes). Usually, the changes are minor enough that it's pretty easy to figure out what to do.
increment
and Sally called it counter
.As I said, I usually do a postpone, let my update finish, then handle the problems.
Once you fix the problem, you do a svn resolved
on that file to let Subversion know you've fixed the conflict.
There are further choices -- for example, you can launch a third party diff/merge tool to handle the conflict.
For more information, take a look at the Subversion on line manual about resolving merge conflicts.