[Buildbot-devel] Problems configuring svn

Brian Warner warner-buildbot at lothar.com
Tue Apr 17 07:10:22 UTC 2007


Brian Rak <dn at devicenull.org> writes:

> starting svn operation
> rm -rf /home/buildbot/slave/sf-linux/build

As Simon pointed out, the checkout/update step first has to decide whether
the directory is usable: the function you want to look at is
buildbot.slave.commands.SVN.sourcedirIsUpdateable. In this case, it looks to
see whether the '.svn' directory is present: SVN uses this to stash its
internal state (like what revision you most recently checked out). If
something goes wrong during the checkout, that directory might not exist, and
if so buildbot will do a new checkout instead of attempting to update the old
directory.

Buildbot will also clobber and re-checkout the directory if the previous
build applied a patch (as with a 'try' build), since it isn't easy to tell
how one might cleanly undo the effects of that patch. Also, if any errors
occur during a 'svn update', the buildbot will clobber and re-checkout,
although in this case it ought to log a message to that effect.

hope that helps,
 -Brian





More information about the devel mailing list