[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: date and -r {DATE}

From: Marcus Rueckert <darix_at_web.de>
Date: 2005-04-22 06:10:20 CEST

On 2005-04-21 23:13:41 -0400, John Belmonte wrote:
> It's a shame that I can't use the output of GNU date for Subversion
> revisions because svn demands a colon in the time zone offset.
> Shouldn't this be fixed?
>
> $ svn diff -r {`date --iso-8601=seconds -d '2 hours ago'`}
> svn: Syntax error in revision argument '{2005-04-21T20:46:05-0400}'

i guess the timezone causes trouble here.
working solution is: svn diff -r{$(date "+%FT%T" -d "1 day ago")}

(gnu date as of coreutils-5.3.0-9)

darix

-- 
irssi - the client of the smart and beautiful people
              http://www.irssi.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 22 06:11:05 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.