views:

614

answers:

2

When I have several conflicts, is there a way to resolve them all by just telling SVN to keep the version that is in the repository? Unfortunately, we're still using 1.4.

+2  A: 

I believe if you run the command svn revert . -R, you basically undo all changes to your working copy. If there are conflicted files, SVN tosses out your changes and uses the revision you've most recently updated to.

Of course, this also gets rid of changes to files that aren't conflicted.

Nick Meyer
SVN tosses out your changes and uses the version you originally checked out; you still need to do an svn update to get the current HEAD version from the repository.
Roger Lipscombe
@Roger: but if you have conflicted files, then you've run svn up. It is the version that svn up pulled from the repository that svn reverts to (unless this changed, I tested it with 1.6.3).
Nick Meyer
clarified my answer accordingly :)
Nick Meyer
nice idea. i'll leave it open for a while to see if there's a more elegant solution.
nategood
+1  A: 

svn update . --accept theirs-full

Or is that not available in svn 1.4?

You could try and run the 1.5 client against a 1.4 server, might work.

Michael Wiles
I ran a 1.5 client with a 1.4 server for a while. For most purposes it works fine, but you lose the automatic merge tracking, for one thing. See the "compatibility concerns" in the 1.5 release notes (http://subversion.tigris.org/svn_1.5_releasenotes.html).
Nick Meyer