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

Re: svn log and date range

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 14 Oct 2008 12:22:00 -0700

On Tue, Oct 14, 2008 at 12:12 PM, Wellington Fan <winterbeef_at_gmail.com>wrote:

> Hello all,
>
> I thought that I understood the -r{DATE1}:{DATE2} syntax to grab all
> transactions from 00:00:00 of DATE1 to 00:00:00 of DATE2. I am using
> svn, version 1.5.1 (r32289).
>
> I issue the following commands and get unexpected results, numbered for
> easy reference:
>
> (1)
> $ svn log -r{2008-10-10}:{2008-10-11} -q
> ------------------------------------------------------------------------
> r596 | wfan | 2008-10-08 18:30:49 -0400 (Wed, 08 Oct 2008)
> ------------------------------------------------------------------------
> r597 | wfan | 2008-10-10 10:58:09 -0400 (Fri, 10 Oct 2008)
> ------------------------------------------------------------------------
> r599 | wfan | 2008-10-10 13:37:04 -0400 (Fri, 10 Oct 2008)
> ------------------------------------------------------------------------
>
> (2)
> $ svn log -r{2008-10-11}:{2008-10-11} -q
> ------------------------------------------------------------------------
> r599 | wfan | 2008-10-10 13:37:04 -0400 (Fri, 10 Oct 2008)
> ------------------------------------------------------------------------
>
> (3)
> $ svn log -r{2008-10-10}:{2008-10-10} -q
> ------------------------------------------------------------------------
> r596 | wfan | 2008-10-08 18:30:49 -0400 (Wed, 08 Oct 2008)
> ------------------------------------------------------------------------
>
>
>
> So I'd NOT expect r596 to show in (1), since the commit date is NOT
> between (2008-10-10 00:00:00) and (2008-10-11 00:00:00)
>
> I'd not expect ANY results from (2), nor from (3), as I would think that
> the date ranges I've set up are impossible...
>
> What am I missing in my understanding?

Please read the box titled "Is Subversion a Day Early?", at this link:
http://svnbook.red-bean.com/en/1.5/svn.tour.revs.specifiers.html#svn.tour.revs.dates

thanks,
-Hari
Received on 2008-10-14 21:22:29 CEST

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.