[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: Christopher Ness <chris_at_nesser.org>
Date: 2005-07-04 16:53:37 CEST

On Sat, 2005-07-02 at 10:30 -0500, Ben Collins-Sussman wrote:
> On Jul 2, 2005, at 9:24 AM, Alex Barba wrote:
> > CVS has a very flexible date parser. I'd like svn to get some of
> > that flexibility as well.
> Yup, it's funny, Subversion used to use CVS's date parser (the same
> bison file), so in the early days you could type something like 'svn
> update -r {"two weeks ago"}'. But just before 1.0, we decided it
> would be a nightmare to support, so quickly wrote our own date-parser
> with a very limited set of formats.
> Still, I agree, we should be able to parse "2005-7-5" as if it were
> "2000-07-05". And it would be nice to use "2005/07/05" as well.


What revisions was this file removed and the new parser implemented in.
I'd like to read the code to see where I can go with this in my spare

With the obvious volume of messages in this thread the implementation
should be hidden in a function with a good interface to Subversion's
internal format.
Therefore it would be quick to tweak separator chars and how the input
is formatted, etc.

Subcommands using the date parsing include:
    log, diff, info, blame..... and maybe more?


Wireless Group,
McMaster University
10:48:15 up 59 min, 1 user, load average: 0.14, 0.06, 0.07
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 4 16:58:06 2005

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

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