On Tue, Oct 14, 2008 at 15:12, 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)
Yes it is. r599 is from 2008-10-10 13:37. That's between midnight of
October 10th and midnight of October 11th.
> 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...
>
When you use a date for the revision range, the last log *before*
starting date you request is retrieved, because that was the state of
the repository *at* the beginning of the range.
http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.log.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-14 21:19:58 CEST