[Buildbot-devel] client-side subversion ChangeSource?
John Pye
john.pye at student.unsw.edu.au
Wed Mar 15 06:26:03 UTC 2006
Did you try using the 'cvs log' command, I wonder? Maybe that would
allow your buildbot to find out what (if anything) has changed with a
bit less bandwidth being used.
Following on from my post, I have fixed a couple of bugs in my little
Subversion monitor script and so I'll attach it again here. This script
detects, using 'svn log', who the user was that made the change, what
the revision number is, and what files were changed, without needing to
transfer any of the files. It's written in python so should, with the
exception of the Python 'commands' module, be fairly easily ported to
other OSs.
Cheers
JP
Marnix Klooster wrote:
> As you wrote, the solution is to have
>
> from buildbot.changes.pb import PBChangeSource
> c['sources'].append(PBChangeSource())
>
> in master.cfg. (It is there in the sample delivered with 0.7.2, but
> commented out.) However, since this is something that multiple people
> run into (it certainly had me stumped for more than 1.5 hours), it
> might be a good idea to enable the above lines in the sample
> master.cfg. Also, well, the 0.7.2 manual kind of mentions this in the
> 'PBChangeSource' section: "This is used by the built-in buildbot
> sendchange notification tool [...]"; and again a hint in the 'branch
> example' of the SVN checkout section. But I overlooked those, and
> found nothing special mentioned in the 'sendchange' section itself.
>
> Back to the original topic, I'm currently also using client-side
> change detection for CVS: I want to run buildbot on a CVS repositories
> where I can't get commit signals from the server (and can't be
> bothered to try and get them, set up mail appropriately, etc.) What
> works fine for me, is to have a local checkout of the repository, and
> then regularly run "cvs -q update". If there were changes in CVS this
> will print the changed files, and update the repository so it won't
> see those same changes again later.
>
> Just run a script that does that regularly, and you're all set.
> Probably others are already doing that; just thought this could be
> useful to share.
>
> Groetjes,
> <><
> Marnix
>
> P.S. Although it is simple, some might find the actual script useful
> that I just started to use (see attachment).
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2 9385 5127
f +61 2 9663 1222
mailto:john.pye_AT_student_DOT_unsw.edu.au
http://pye.dyndns.org/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: svn.py
URL: <http://buildbot.net/pipermail/devel/attachments/20060315/3fe57312/attachment.ksh>
More information about the devel
mailing list