[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: commit fails

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-03 17:55:14 CEST

On Jun 3, 2006, at 16:42, Ingo Weiss wrote:

> my commit fails with the following message:
>
>
> svn: Commit failed (details follow):
> svn: File '/app/myfile.rhtml' already exists
>
>
> I am not completely sure what I did to myfile.rhtml, but I think I
> used
> "svn copy" to create it based on an exesting file, but misspelled it's
> name and renamed it in the finder (which probably was a bad idea).
> Now I
> don't know what I can try to fix the problem.

Yes, you should not have renamed the file using any tool other than
Subversion. Now we'll have to figure out what you did, undo it, and
do it the right way.

Presumably you used something like "svn copy somefile.rhtml
oopsfile.rhtml", realized that "oopsfile.rhtml" was the wrong name
and used the Mac OS X Finder to rename it to "myfile.rhtml", then
used "svn add myfile.rhtml" to add it. If so, you should undo each
step in reverse chronological order. Revert the addition: "svn revert
myfile.rhtml". Use the Finder to rename the file back to
oopsfile.rhtml. Undo the copy: "svn revert oopsfile.rhtml". Now copy
the file properly: "svn cp somefile.rhtml myfile.rhtml". Then you
should be able to commit the change.

If you had copied the file, and then made changes to it, and were now
wanting to commit both the creation of the file and the changes, then
you would, after doing the correct copy above, have to re-do your
changes. If the changes are extensive, take your current myfile.rhtml
and copy it somewhere else first (using the Finder or other non-
Subversion means), do the above steps, then finally replace
myfile.rhtml in your working copy with the version you saved.

If this doesn't work, show us the error you get. If possible, show us
all the commands and other steps you performed to get into this
situation so we can show you where you went wrong. (I realize you may
not remember exactly what you did and probably didn't write it down
at the time.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jun 3 17:58:02 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.