Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolve postponed conflicts with SVN

Tags:

I'm fairly new to SVN command line in a team environment. I accidentally postponed merging revisions. After doing:

svn status 

I get:

?       Trivial/Trivial.xcodeproj/project.pbxproj.mine ?       Trivial/Trivial.xcodeproj/project.pbxproj.r280 ?       Trivial/Trivial.xcodeproj/project.pbxproj.r276 

However, I do not know how to merge these changes. Currently I'm getting an error with XCode saying the project cannot be parsed. Can someone show me how to merge these revisions?

like image 729
Matt Hudson Avatar asked Mar 08 '12 15:03

Matt Hudson


People also ask

How do I resolve conflicts in svn?

To resolve a conflict do one of three things: Merge the conflicted text by hand (by examining and editing the conflict markers within the file). Copy one of the temporary files on top of the working file. Run svn revert FILENAME to throw away all of the local changes.

What does C mean in svn?

Yes, C is for conflict. You want: svn resolve --accept mine-full my_sysconfig.ini.

How do I view conflicts in svn?

Step 1: View Conflicts Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: Subversion is complaining that there is a conflict with the README file, and Subversion does not know how to solve this. So Jerry chooses the df option to review the conflict.


1 Answers

Those files exist to help you run diffs or 3-way merges. The main version of the file will contain the conflicting code as well with markers surrounding the conflicts. So another option is to just edit the main file, search for those markers. Resolve the conflicts and remove the markers.

When done, you run a command like:

svn resolve --accept=working Trivial/Trivial.xcodeproj/project.pbxproj 

This will remove those other files. You will also see that command includes options to resolve the conflict by simply accepting all the changes from one of those files.

See: http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html#svn.tour.cycle.resolve

like image 68
Mark Phippard Avatar answered Sep 22 '22 11:09

Mark Phippard