[Buildbot-devel] source code update via SVN

Charles Lepple clepple at gmail.com
Tue Jul 28 11:36:31 UTC 2009


On Jul 27, 2009, at 2:41 AM, 雷东壁 wrote:

> I'm using SVN to watch and update source code. But when there are  
> some updates in source code server, it will delete and checkout all  
> the source code in 'build' dir on buildslave server. It's terribly  
> time consuming! What I want is just updating the changed source files.
[...]
> f1.addStep(SVN,
>            svnurl='https://rep.project.com/SourceCode',
>             mode='update',
>            alwaysUseLatest = True,
>            haltOnFailure = True)
> ...........
>
> The build steps are omitted. This f1.addStep above will result in  
> the time consuming code checkout. How to avoid it?

"mode='update'" should only take a long time on the initial checkout,  
or if a change happens on another branch (Buildbot only keeps one  
working copy around).

If the slowdown is due to changing branches, you may be interested in  
this patch:

http://buildbot.net/trac/ticket/97

But in that case, you may want "mode='copy'" to avoid the problem that  
Dustin describes in the last comment there.



More information about the devel mailing list