[Buildbot-devel] source change for sf.net hosted CVS

Mark Pauley mpauley at apple.com
Fri Feb 2 21:10:01 UTC 2007


That's in essence what I'm doing, I just also grab the commit  
comments etc.
Again, the problem is that you have to have a local CVS sandbox per  
project on your buildmaster.

_Mark

On Feb 1, 2007, at 9:52 PM, Marnix Klooster wrote:

> On 01-02-07 22:56, Mark Pauley wrote:
>> Sorry guys, been busy... you know how it is ;)
>>
>> I'm still working on the CVSPolledSource merge.
>> I'm just hacking through the tests now.  Thanks to the p4poller
>> tests, think I have a pretty good idea of how to test this sucker.
>>
>> One issue I'd like to mention is that CVS is file-centric, that is
>> CVS has a different version number for every file.
>> Currently, my hack is to just check a repository out to a given
>> sandbox location on the master, and perform cvs update on that
>> directory, and then examine the logs to get the details.
>> I shouldn't need to do this for the tests, all of the data is static,
>> but still the solution smells weak and requires something that none
>> of the other source change modules require.
>>
>> This is not now p4 operates apparently, and I think my method is a
>> big fat hacky hack.  It works, but it's ugly.  Can anyone else think
>> of a better way to do this?
>
> Hi Mark,
>
> I'm not really following this list very closely, so I probably have
> missed some discussions around this, but I'm doing something similar
> (but outside of python), but simpler (I think).  Basically, I call  
> "cvs
> -q update" on a locally checked out repository.  Non-zero exit code
> means something went wrong.  If the standard output of the command is
> empty there were no changes, otherwise there were, and then you can  
> get
> the names of the changed files from that output using "cut - 
> c3-" (i.e.,
> strip off the first two characters).
>
> I've been using this in the past for sf.net CVS repositories, and it
> worked like a charm for me.
>
> See http://sourceforge.net/mailarchive/message.php?msg_id=15042932  
> for a
> (space-wise mangled) copy of my script.
>
> Hope this helps.
>
> Groetjes,
>   <><
> Marnix
>
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel





More information about the devel mailing list