Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "The last merge operation tried to add the file 'x.cs' but the file was obstructed in the working copy." mean?

I'm using TortoiseSVN to do a merge. I'm trying to merge /branch/A into /branch/B which were both branched from /trunk. I'm getting a Tree Conflict and the dialog contains a message like this:

The last merge operation tried to add the file 'x.cs' but the file was obstructed in the working copy.

It gives me the option to Accept the current working copy, postpone or resolve later.

I thought this meant that two files of the same name had been added separately to each branch. Have I understood what this conflict is correctly? If I have, why is it not giving me the option to Merge the two files together?

like image 819
Martin Brown Avatar asked Nov 27 '15 09:11

Martin Brown


1 Answers

It means that a file named x.cs was added in branch/B. However, in branch/A there was also a file named x.cs added. Both files named x.cs are not related but were added independently.

Now you're trying to merge branch/A into branch/B. That merge tries to add the file x.cs that was added in branch/A now to branch/B. But there already is a file named x.cs in branch/B, and that file obstructs the one from branch/A.

That's what the error message is telling you.

like image 184
Stefan Avatar answered Nov 08 '22 18:11

Stefan