[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: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-04-27 14:22:19 CEST

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}'

Works for me with Subversion trunk r14462. Maybe you are using an old version?

$ date --iso-8601=seconds -d '2 hours ago'
2005-04-27T11:20:28+0100
$ svn diff -r{`date --iso-8601=seconds -d '2 hours ago'`}
Index: subversion/include/svn_client.h
[...]

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 27 14:23:47 2005

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