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

Re: Date processing should be more flexible

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-07-04 04:16:44 CEST

On Jul 2, 2005, at 10:24 AM, Alex Barba wrote:

> CVS has a very flexible date parser. I'd like svn to get some of
> that flexibility as well.
> For example, the following works ok:
>
> svn update -r "{2005-07-05}" make/Common_Makefile
> At revision 39.
> However, the following does not:
>
> svn update -r "{2005-7-5}" make/Common_Makefile
> svn: Syntax error in revision argument '{2005-7-5}'

+1 for handling a date where the leading zeros are omitted.

> Other formats work equally poorly:
>
> svn update -r "{07/03/05}" make/Common_Makefile
> svn: Syntax error in revision argument '{07/03/05}'

Huge -1 for handling any format other than the ISO standard. Having
dates written in different ways that are numerically illogical is
just inviting problems.

Some relative forms might be nice though.. e.g. {-14d} to get the
change from two weeks ago.

Scott
Received on Mon Jul 4 04:18:48 2005

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