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

Re: svn mkdir --> Conflict - what can cause this?

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 27 Sep 2011 11:00:09 -0400

On Tue, Sep 27, 2011 at 10:54 AM, Jim Garrison <jim.garrison_at_troux.com> wrote:
> We have an automatic (Hudson) build that runs every night.  It starts by making a tag directory into which it will then copy the current build root folder.  Last night, the mkdir failed:
>
> svn --username [obfuscated] --password [obfuscated] --no-auth-cache mkdir --parents http://svn/repos/troux/autobuild/trunk/20110926_233057 -m"create autobuild tag directory"
>
> svn: Conflict at '/autobuild/trunk/20110926_233057'
>
> The job was rerun this morning without making any changes and it had no problem with the mkdir.  I can guarantee that the directory didn't exist in the repository prior to the mkdir command.
>
> The svn server is running on Linux (Fedora 14) and is at version 1.6.16
> The client is on Linux (Fedora 14) and is at version 1.6.17

It can happen if any change is committed beneath the autobuild
directory in the short window from which the code retrieves its
version and then commits the next transaction. It is real easy to see
this problem if you are using mirrors and the write-thru proxy
feature. On a single server, it seems like it would just require
perfect bad-timing.

If your logs give you a timestamp when the command failed, you ought
to be able to run svn log and see if there was another commit at the
same time.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2011-09-27 17:00:42 CEST

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.