Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handling SVN conflict

Tags:

svn

conflict

When firing the SVN update statement I am getting the conflicts. How can I keep my version and check that in. What is the command for that?

like image 268
Abhinav Avatar asked Mar 29 '11 23:03

Abhinav


People also ask

What is svn tree conflict?

Since 1.6 version SVN recognizes a new kind of conflict, known as a "tree conflict". Such conflicts manifest at the level of directory structure, rather than file content. Situations now flagged as conflicts include deletions of locally modified files, and incoming edits to locally deleted files.

How do I stop tree conflict in svn?

When you merge your branch back into the trunk, SVN tries to do the same again: It sees that a file was created in your branch, and tries to create it in your trunk in the merge commit, but it already exists! This creates a tree conflict. The way to avoid this, is to do a special merge, a reintegration.


2 Answers

If you're using a shell client like TortoiseSVN, then right click "resolve using mine" as @Adi mentions.

On the command line, it's

svn resolve --accept mine-full <FILENAME>
like image 111
Babak Naffas Avatar answered Oct 01 '22 14:10

Babak Naffas


If you are working in the command line instead of using a UI, svn will ask you when you do "svn update" something like:

Conflict discovered in 'bar.c': (p) Postpone (e) Edit (tf) Theirs-full (mf) Mine-full

What you want is mine-full (mf). Of course this will overwrite any changes that the other person made, so you may instead want to (e)dit.

If you choose to (p)ostpone this, you will need to change the file later and mark it as resolved (svn resolved ), followed by a svn commit.

like image 28
dynathi Avatar answered Oct 01 '22 13:10

dynathi