Alex Rivera | Logout

SVN: Cannot commit 'x' and 'y' as they refer to the same URL?

Asked 2011-05-27T20:34:09.947
9

I'm trying to do a commit on my project and am running into the following error. Pay close attention to the path:

Commit failed (details follow):
Cannot commit both
'C:\Development\Project\branches\nextver\project\bin\com\companyname\blah\Foo.java'
and
'C:\Development\Project\branches\nextver\project\src\com\companyname\blah\Foo.java'
as they refer to the same URL

How in the world did this happen? I never had my source files in the bin path in Eclipse! What can I do to fix it? Please tell me there's something better than checking it out again and replacing all of the files. I have 191 Java files alone, not to mention resources and Eclipse files.

Edit
Report

1 Answer

0

In my case I had a config file that was shared between two projects but I had updated the file (with the same changes) in both projects.

SVN can't commit as it thinks there are two different sets of changes to be committed to the same file.

So I reverted one of the copies and then I was able to commit.

answered 2013-07-26T12:22:05.963

Your Answer