SVN keeps corrupting files with "<<<<<<< .mine", how to fix?

C#Visual StudioSvnTortoisesvnAnkhsvn

C# Problem Overview


I've got a Visual Studio C# project which is under version control (SVN). I've always commited and updated the project without any problems. But a couple of hours ago Visual Studio throws the following error when I try to launch/rebuild the project:

> Files has invalid value "<<<<<<< > .mine". Illegal characters in path.

I don't know how to fix this problem. What should I do?

C# Solutions


Solution 1 - C#

That happens when svn encounters a conflict: You changed a file, the file on the server was changed and it cannot (easily) be merged automatically. You need to decide what is the correct solution now.

Subversion just adds the diff into your source file (and creates files next to it, called OriginalName.mine (unchanged) and OriginalName.rsomething (unchanged, server version)).

Fix the conflict and tell subversion that this is resolved.

Solution 2 - C#

just delete the obj folder and it will worked fine.

Solution 3 - C#

Remove the code that shouldn't be in the file throwing the error and remove the the three files with extensions .mine, .<somerevision> and .<some_other_revision>. svn updated files that now contain 'conflicts' and you need to resolve these conflicts by hand. Usually this means you edited a file, someone else edited the same file and checked in changes and you didn't pay attention when checking out the changed file.

Solution 4 - C#

Delete every thing you have in obj folder .

Remove your obj folder from svn version control . Because on every build it get updated and when other developer commit changes to solution SVN is unable to marge obj folder files and raise error

> Files has invalid value "<<<<<<< .mine". Illegal characters in path.

Solution 5 - C#

Please read the Basic Usage chapter in the subversion book. It has a section about Merging conflicts by hand which explains the conflict markers you're seeing.

Solution 6 - C#

Removing the debug folders worked for me (see comment-not answer above). I got this after moving 12 folders from one section of svn to a new section. So if you get this after moving a project and the error does not point to an actual file, this is likely your issue.

Solution 7 - C#

If you have http://ankhsvn.net">AnkhSVN</a> or http://visualsvn.com">VisualSVN</a> installed resolving this is most likely as easy as right clicking the file in the solution explorer and selecting edit conflict.

This will open the changed file in your merge editor. (See Tools->Options->Source Control->Subversion User tools for AnkhSVN). With a good merge tool like the free to use http://www.sourcegear.com/diffmerge/">SourceGear DiffMerge or TortoiseMerge, resolving the conflict is just a few mouseclicks away.

Solution 8 - C#

I have had this happen on a large scale where the files get marked resolved but the conflict metadata is still there. I wrote a regular expression for visual studio to find these, for instances where it is not feasible to simply revert the changed files.

http://www.codetunnel.com/blog/post/90/ever-merge-with-svn-and-mess-up-when-resolving-conflicts-read-on

Solution 9 - C#

I closed the IDE, then deleted the obj folder and restarted the IDE and rebuilt my Code. This worked for me.

Solution 10 - C#

  • Inside your project :

    odj folder -> Debug -> project name.csproj.Filelistabsolute.txt(snb.csproj.Filelistabsolute.txt)

  • Inside the text file >>>>>>>.mine and >>>>>>>.r150 occurs to remove the things the program works

Solution 11 - C#

1)Just save your local changes whatever u have edited in the file

2)revert the file

3)update it from SVN

4)Paste your local changes

Solution 12 - C#

If you are using TortoiseSVN you should have a right click option on the file called Edit Conflicts. This should bring up TortoiseMerge which is able to read those obnoxious notations stuck into the file (really, to break your code so you KNOW there's an issue and don't blindly check it in).

TortoiseMerge will read it properly and present you with a 3-way merge. This was what I was looking for. Although it is true that it does also create the separate .mine and .rxxx and .ryyy files, and there are various manual and command-line ways to deal with all this.

Solution 13 - C#

Have a simple solution. just delete all file from debug folder and rebuild the solution, an error display on the screen "There were build errors. Would you like to continue and run the last successful build? click on "Yes" button. Now stop the program and run normally.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMysticEarthView Question on Stackoverflow
Solution 1 - C#Benjamin PodszunView Answer on Stackoverflow
Solution 2 - C#marcgView Answer on Stackoverflow
Solution 3 - C#ConfusionView Answer on Stackoverflow
Solution 4 - C#Muhammad NasirView Answer on Stackoverflow
Solution 5 - C#Wim CoenenView Answer on Stackoverflow
Solution 6 - C#done_mersonView Answer on Stackoverflow
Solution 7 - C#Bert HuijbenView Answer on Stackoverflow
Solution 8 - C#ChevView Answer on Stackoverflow
Solution 9 - C#AbhishekView Answer on Stackoverflow
Solution 10 - C#RajkumarView Answer on Stackoverflow
Solution 11 - C#Rohan GalaView Answer on Stackoverflow
Solution 12 - C#Josh SutterfieldView Answer on Stackoverflow
Solution 13 - C#user15806755View Answer on Stackoverflow