[Buildbot-devel] cvs vs. win again
Stephen Davis
stephendavis at mac.com
Fri Aug 12 00:54:21 UTC 2005
Anyone? Bueller?
Surely someone out there must be using buildbot + cvs on windows...
stephen
On Aug 9, 2005, at 3:50 PM, Stephen Davis wrote:
> This is bugging me again so I will bug the list again.
>
> cvsnt on Windows is cheesing the "-D Tue, ..." CVS timestamp. If I
> compare my OS X box and my windows box, I see:
>
> OS X:
> ---
> starting cvs operation
> cvs -z3 -q update -dP -D Tue, 09 Aug 2005 19:50:36 -0000
> in dir /Volumes//slave/MyApp-XC/MyApp (timeout 1200 secs)
> argv: ['cvs', '-z3', '-q', 'update', '-dP', '-D', 'Tue, 09 Aug
> 2005 19:50:36 -0000']
>
> Windows
> ---
> starting cvs operation
> C:\WINDOWS\system32\cmd.exe /c cvs -
> d :pserver:buildbot at cvs.mycompany.com:/cvs/root -z3 -r -q checkout -
> d MyApp -D Tue, 09 Aug 2005 19:50:36 -0000 MyApp
> in dir E:\slave-cw\MyApp-W32 (timeout 1200 secs)
> argv: ['C:\\WINDOWS\\system32\\cmd.exe', '/c', 'cvs', '-d',
> ':pserver:buildbot at cvs.mycompany.com:/cvs/root', '-z3', '-r', '-q',
> 'checkout', '-d', 'MyApp', '-D', 'Tue, 09 Aug 2005 19:50:36 -0000',
> 'MyApp']
> cvs checkout: cwd=E:\slave-cw\MyApp-W32 ,current=E:\slave-cw\MyApp-W32
> cvs server: cannot find module `09' - ignored
> cvs server: cannot find module `Aug' - ignored
> cvs server: cannot find module `2005' - ignored
> cvs server: cannot find module `19:50:36' - ignored
> cvs server: cannot find module `-0000' - ignored
> cvs [checkout aborted]: cannot expand modules
>
> I'm guessing that the Windows one is breaking the -D pieces into
> separate arguments because it is being passed to cmd.exe instead of
> being executed directly. It seems like the -D pieces need to be
> quoted in the original argv[] list and then maybe they won't be
> broken up by cmd.exe. Ignore the fact that the above windows step
> is doing a full checkout, it happens for updates too.
>
> I poked around in the CVS step's computeSourceRevision() in process/
> step.py and I changed:
>
> return formatdate(when)
> to
>
> return "\"%s\"" % (formatdate(when),)
>
> Alas, this works for Windows but horks on OS X: cvs [checkout
> aborted]: Can't parse date/time: "Tue, 09 Aug 2005 22:39:43 -0000"
>
> Any suggestions?
>
> stephen
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/
> bsce5sf
> _______________________________________________
> 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