You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Marco Tedone <mt...@jemos.co.uk> on 2006/04/20 21:43:08 UTC

Problem with dates

Hi, I'm using CruiseControl to monitor changes to my SVN repository. When it's time to check if something changed, CC issues the following command:

[begin]
svn: Syntax error in revision argument '2006-04-12T20:17:30Z:2006-04-20T21:18:40Z'
[cc]Apr-20 22:18:40 SVN           - Error executing svn log command svn log --non-interactive --xml -v -r {2006-04-12T20:17:30Z}:{2006-04-20T21:18:40Z} --username ****--password **** http://jemoserver/jemos-repos-quartz
[end]

Is the date in the right format? It seems that SVN doesn't like it. I'm running on Windows XP SP2.

Marco

Re: Problem with dates

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 20, 2006, at 23:43, Marco Tedone wrote:

> Hi, I'm using CruiseControl to monitor changes to my SVN  
> repository. When it's time to check if something changed, CC issues  
> the following command:
>
> [begin]
> svn: Syntax error in revision argument '2006-04-12T20:17:30Z: 
> 2006-04-20T21:18:40Z'
> [cc]Apr-20 22:18:40 SVN           - Error executing svn log command  
> svn log --non-interactive --xml -v -r {2006-04-12T20:17:30Z}: 
> {2006-04-20T21:18:40Z} --username ****--password **** http:// 
> jemoserver/jemos-repos-quartz
> [end]
>
> Is the date in the right format? It seems that SVN doesn't like it.  
> I'm running on Windows XP SP2.


That command works great for me with Subversion 1.3.1 in a bash shell  
on Mac OS X 10.4.6 PPC.

Looks like your shell is throwing away the curly brackets. Perhaps on  
a Windows shell they need to be escaped?

svn log --non-interactive --xml -v \
-r '{2006-04-12T20:17:30Z}:{2006-04-20T21:18:40Z}' \
--username ****--password **** http://jemoserver/jemos-repos-quartz

Or:

svn log --non-interactive --xml -v \
-r \{2006-04-12T20:17:30Z\}:\{2006-04-20T21:18:40Z\} \
--username ****--password **** http://jemoserver/jemos-repos-quartz

Both of those escaped variants also work for me in bash.

I haven't used CC so I don't know if this is something that needs to  
be changed in their code or whether you can handle it in a config  
file or what.



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