You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Belmonte <jo...@neggie.net> on 2005/04/22 03:13:41 UTC

date and -r {DATE}

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

-John

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

Re: date and -r {DATE}

Posted by Marcus Rueckert <da...@web.de>.
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

Re: date and -r {DATE}

Posted by kf...@collab.net.
John Belmonte <jo...@neggie.net> writes:
> 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}'

That sounds reasonable to me, and (at least at first glance) I don't
see any conflicts or ambiguities with the currently-supported date
formats at:

   http://svnbook.red-bean.com/en/1.0/svn-book.html#svn-ch-3-sect-3.3

Would you mind filing an issue for this?  In the issue, in addition to
describing the problem and the proposed enhancement, please link to
this mail thread.

No promises as to when it happens, of course, but patches always make
things happen faster... :-)

Best,
-Karl

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

Re: date and -r {DATE}

Posted by Marcus Rueckert <da...@web.de>.
On 2005-04-27 13:22:19 +0100, Julian Foad wrote:
> Works for me with Subversion trunk r14462.  Maybe you are using an old 
> version?

it was fixed in r14428

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

Re: date and -r {DATE}

Posted by Julian Foad <ju...@btopenworld.com>.
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