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

Re: bug?: "commit failed, file already exists"

From: Michael <themiwi_at_student.ethz.ch>
Date: 2006-05-08 23:22:51 CEST

Garrett Rooney wrote:
> On 5/5/06, Christian Bang <cbang@gmx.net> wrote:
>> Hello,
>>
>> I get the above error every time the first commit crashes for some
>> reason and I try to commit again. Some files are now in the repository
>> but still scheduled for addition in the local copy. (A clean doesn't
>> cancel these additions.) An update of the repository doesn't help since
>> no other user accessed the repository in the meanwhile.
>> I thought, it could never happen that some files of one commit are added
>> while others aren't since in case of an error the transaction is rolled
>> back?!
>
> It can't happen. Well, you can't get "some of the files" into the
> repository without all of them being committed. You can get "all of
> the files" into the repository but not have your working copy be
> updated to reflect that fact. The commit is atomic, but the updating
> of the working copy afterwards is not.
>
> I suspect you're missinterpreting the error message, or your
> description of the problem is a bit off.
>
> Unfortunately, without a reproduction recipie, or at the very least
> the actual error message you're seeing, it's hard to tell for sure one
> way or the other.
>
> -garrett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
I'm absolutely no subversion guru, but I encountered a similar situation
once. Just to make sure the commit/checkin/add operation was succesful,
check the revision number, the diff and checkout the files in question
into some temporary place and check for integrity. If everything is
fine, delete the local copies and update. This worked for me, but comes
with absolutely no warranty... In any case, back up the local files
before deletion!

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 8 23:24:01 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.