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

Re: Commit failed, file out of date error

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Wed, 10 Jun 2009 08:15:22 -0700

On Tue, Jun 09, 2009 at 11:50:03PM -0700, Nafter wrote:
> 1) entirely delete 3 directories on the server
> 2) recreate the same 3 directories again, and do a checkout on 3 different
> svn urls.
> 3) now just to be sure I do an svn update on the 3 directories again.

If this is a workaround for the "race condition" where someone commits
to the repository while you are checking out these working copies, you
have only made the window smaller; you haven't eliminated the potential
race.

> 4) now I copy across a new version.txt file which is present in all of the 3
> directories.
> I just want to overwrite the version.txt with a newer version of that
> file.
> 5) After the copying I want to commit the 3 directories again.
>
> Result ?
>
> 1 out of 5 times this is working correctly. But in all the other situations
> I receive always the following error:

Does it work the first time, but not the subsequent times? If so, it's
probably because your first commit bumps the revision number of the
repository, causing the other working copies to be out-of-date. See the
reply I just wrote to someone else on this topic.

tyler
Received on 2009-06-10 17:16:35 CEST

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