You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "HAND,Nathan" <Na...@dewr.gov.au> on 2004/11/01 05:46:36 UTC
RE: Re: Revision Dates Really Inclusive?
My intuition says that the left hand date should be measured from 00:01,
and the right hand date should be measured from midnight.
> -----Original Message-----
> From: Max Bowsher [mailto:maxb@ukf.net]
> Sent: Friday, October 29, 2004 6:32 PM
> To: John Florian; users@subversion.tigris.org
> Subject: Re: Revision Dates Really Inclusive?
>
>
> John Florian wrote:
> > The SVN book states, "You can also use a range of dates. Subversion
> > will find all revisions between both dates, inclusive", but I find
> > that when I perform 'svn -r {date1}:{date2} log' the first
> log entry
> > is prior to date1. If I try for one particular hour out of a given
> > day, I find much the same behavior: one extra log entry at the
> > beginning of the output -- this log entry is the one
> immediately prior
> > to the hour requested.
> >
> > How can I get true inclusive behavior?
>
> The problem is that svn interprets that as "the revision that
> was HEAD at
> midnight on date1" to "the revision that was HEAD at midnight
> on date2".
> Which is not a very intuitive interpretation. I think our date range
> matching needs redesigning.
>
> Max.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Notice:
The information contained in this e-mail message and any attached files may
be confidential information, and may also be the subject of legal
professional privilege. If you are not the intended recipient any use,
disclosure or copying of this e-mail is unauthorised. If you have received
this e-mail in error, please notify the sender immediately by reply e-mail
and delete all copies of this transmission together with any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Revision Dates Really Inclusive?
Posted by John Florian <jf...@kennedytech.com>.
HAND,Nathan wrote:
>My intuition says that the left hand date should be measured from 00:01,
>and the right hand date should be measured from midnight.
>
>
That would be the nearly the same as my intuition -- I'd actually
consider midnight to be the start of a day, but that's moot here -- but
that's not what I'm finding to be reality. It seems that 'svn -r
date1:date2 log' insists on showing what was HEAD as of date1 in
addition to showing what changes actually took place on and between
date1 and date2. I've tested this in the following date/time formats,
each with the same result:
{2004-10-25}:{2004-10-25}
{2004-10-25 00:01}:{2004-10-25 23:59}
{2004-10-25 00:01 -0400}:{2004-10-25 23:59 -0400}
In all three cases, I get one prior log entry to 10/25 -- in this exact
example, that prior log entry is dated 10/22 (nothing happened on the
23rd or 24th).
--
John Florian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org