[Buildbot-devel] Multiple SVN repositories

Brad Hards bradh at frogmouth.net
Fri Nov 11 22:18:01 UTC 2005


On Saturday 12 November 2005 03:25 am, Joel Becker wrote:
> On Fri, Nov 11, 2005 at 05:49:26PM +1100, Brad Hards wrote:
> > #add a callable that returns true if commit is from repo1
> > def repo1selector(thisChange):
> > 	#something
> >
> > #same for repo2
> > def repo2selector(thisChange):
> > 	#something else
>
> 	Yeah, I thought of something like this, but the list of file
> changes has no repo url or other way to identify the repository.
> Imagine the changed file list is 'trunk/Makefile'.  Everyone has that
> file.
You don't need to do it on filename - there are more values in a Change class 
that might help.

Are users unique across the repository? Or can you make it so, by adding a 
repo prefix or suffix to the username in the parser? That would need multiple 
parsers (ChangeSources) though.

Alternatively, if you know what revision you have in your Change, then look at 
the self.revision value, and compare that against the most recent revision in 
each repo. If a couple of repos are similar, then it risky. At least you 
could avoid building in repos that can't possibly be right.

Or you could make the commit comments automatically include a repo identifier 
(eg with a pre-commit hook) and filter on that - that would allow you to have 
a single parser, at the cost of some extra noise in the logs.

Any of that help?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20051112/326d6583/attachment.bin>


More information about the devel mailing list