Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting the following error -

            Command: Commit  
            Error: Commit failed (details follow):  
            Error: Cannot commit both   
            Error: '<path>\myfilename.java'   
            Error: and   
            Error: '<path>\myfilename.java'   
            Error: as they refer to the same URL  
            Finished!:   

when I try to commit even a small change to myfilename.java to SVN. I am using Tortoise SVN.

Please help!!

share|improve this question

In one of the paths, delete the ".svn" folders. And then do an update on your working directory and commit. Somehow the metadata ( in .svn ) got mixed between the two paths.

share|improve this answer

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 commited to the same file.

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .