SVN Merge conflict during commit
Asked Answered
S

6

8

Eclipse + Subversive plugin

On commiting a directory which is out of sync with the SVN a message pops up:

Merge conflict during commit
svn: Commit failed (details follow):
svn: File or directory '.' is out of date; try updating
svn: resource out of date; try updating

Tried to update the whole project from Eclipse Navigator view (right click>Refresh or F5) and the problem still persists.

Is there something that can be done in this case?

Sylas answered 6/8, 2009 at 12:36 Comment(0)
B
12

You are mixing up two different operation in Eclipse:

  • Update (from version control)

and

  • Refresh

"update" means retrieve the most recent version of a file(s) from the version control system. "Refresh" just means that Eclipse will update its view of the local filesystem, in case a file was changed outside Eclipse.

You need to do an update (Team->Update).

Babylonian answered 6/8, 2009 at 12:45 Comment(0)
T
8

You should update, resolve conflicts, then commit again.

See this link for help on resolving conflicts in eclipse.

Turpitude answered 6/8, 2009 at 13:6 Comment(0)
T
2

Sometimes eclipse+subversion gets a bit lost and a more robust solution is called for:

  1. Copy the code with changes to a different location (preferably via copy and paste).
  2. Replace with latest from repo (or revert) on the directory giving the problem
  3. Copy the changes back (via cut and paste again) and check in.
Tertia answered 7/8, 2009 at 14:49 Comment(0)
U
1

try to delete .svn/all-wcprops. maybe it will help

Underclothing answered 25/10, 2011 at 12:12 Comment(0)
D
0

Someone else has modified this directory on you.

You need to do a svn update to get the latest version before commiting.

svn update

or

right click > Team > Update

Refresh or F5 will only re-read what's currently checked out and check for local changes, i.e. changes made outside of eclipse.

The svn update command pulls any changes made remotely (commits) down to your workspace.

Diverticulosis answered 6/8, 2009 at 12:39 Comment(0)
R
0

You need to do an svn update to make sure you are completely up-to-date before committing.

svn update

If the update does not work, you may need to do a cleanup.

svn cleanup

You should be able to find both of these commands in your SVN client outside of Eclipse if you are using one.

Rajasthan answered 6/8, 2009 at 12:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.