You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jan Sandquist <J....@telia.com> on 2004/02/13 19:17:42 UTC

SVN & CC.NET - Windows date parser & issue #408

Hi!

[sorry if you see this twice, not sure it got sent the first time so to say...now I got the
chance to edit it also and Cc the ccnet-developers list.]

Also sorry if this is (really) old news.  I've searched through the mail archives but only
found issue #408 "date parser rewrite", and a single email from Mike Mason related to
SVN integration in CC.NET.  An "old" date parser is currently used on Windows if I
got it right. I think this is addressed by the patch in #408, right?

Problem seen on Windows XP Pro with the prebuilt SVN 0.37 Windows binaries.
On Red Hat 7 (my local build) it works fine with 0.36.

This is what I see on Windows XP:
  D:\jansa\MUMS\product\trunk\src>svn log -r {"2004-01-20 01:12:15 GMT"}
  svn: Syntax error in revision argument '{2004-01-20 01:12:15 GMT}'
  D:\jansa\MUMS\product\trunk\src>svn log -r {"2004-01-20 01:12:15"}
  ------------------------------------------------------------------------
  D:\jansa\MUMS\product\trunk\src>svn log -r {"2004-02-01 01:12:15"}
  ------------------------------------------------------------------------
  r34 | Jan | 2004-01-30 16:03:04 +0100 (Fri, 30 Jan 2004) | 1 line
  ------------------------------------------------------------------------
  D:\jansa\MUMS\product\trunk\src>
A related one might be:
  D:\jansa\MUMS\product\trunk\src>svn log -r {"0001-01-01 00:00:00"}:{"2004-02-12 00:00:00"}
  svn: Syntax error in revision argument '{0001-01-01 00:00:00}:{2004-02-12 00:00:00}'
  D:\jansa\MUMS\product\trunk\src>
with or without the 'GMT'. This is apparently the MinDate in .NET, and used by CC.NET.
What is the minimum date supported by SVN?
Does the locale settings matter?

I've currently patched CC.NET so it works fine with Subversion so just curious about issue #408
before I submit a possible patch to CC.NET, or not...

Cheers,

-- Jan

Re: SVN & CC.NET - Windows date parser & issue #408

Posted by Mike Mason <mg...@thoughtworks.net>.
Jan Sandquist wrote:

> Also sorry if this is (really) old news.  I've searched through the 
> mail archives but only
>
> found issue #408 "date parser rewrite", and a single email from Mike 
> Mason related to
>
> SVN integration in CC.NET.  An "old" date parser is currently used on 
> Windows if I
>
> got it right. I think this is addressed by the patch in #408, right?
>
>  
>
Hi Jan,

My apologies for not getting back to you sooner, but I've been on 
vacation. You're right -- the Subversion date parser changed a little 
while ago and doesn't support the format CC.Net is feeding it (weird 
though, I thought it was a reasonable format I'm using...).

Anyhoo, I've updated the CruiseControl.NET code to pump proper 
timestamps into Subversion, and checked in. The next CCNetLive build 
should contain the fix, you can see the build status and download builds 
from http://ccnetlive.thoughtworks.com/ccnet/

Cheers,
Mike.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org