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

Re: [PATCH] -r { DATE } with words

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 17 May 2011 13:13:31 +0200

Offline I advocated for 'N days ago' to be rounded up/down to the full day.

Stefan Sperling wrote on Tue, May 17, 2011 at 11:36:55 +0200:
> On Tue, May 17, 2011 at 12:45:50AM +0200, Stefan Sperling wrote:
> > Any comments or objections?
>
> Neels didn't like the arbitrary "round to 00:00 of next day" rules
> and everyone in the hackathon room seems to agree. So "one day ago"
> is now the same as "24 hours ago".
>
> I also dropped the "yesterday" keyword because it overlaps with "one day ago".
>
> [[[
> Add support for the following revision { DATE } specifications:
>
> "now" resolves to the most recent revision as of the current time.
>
> "N years|months|weeks|days|hours|minutes ago" resolve to the most recent
> revision prior to the specified time. A year always has 365 days.
> A month always has 30 days. N may be a word from "zero" up to "twelve",
> or a non-negative digit. To help scripts, N=0 is allowed and produces
> the same result as "now", and if N=1 the final 's' of the unit name
> is allowed, but not required.
>
> * subversion/libsvn_subr/date.c
> (unit_words_table, number_words_table, words_match): New.
> (svn_parse_date): Parse new date specifications.
> ]]]
Received on 2011-05-17 12:14:11 CEST

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.