[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: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 14 Oct 2008 15:55:32 -0400

On Tue, Oct 14, 2008 at 15:46, Wellington Fan <winterbeef_at_gmail.com> wrote:
> Hari Kodungallur wrote:
>
>>
>> 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
>>
>
>
> I read that paragraph a few hundred times; now I think I finally
> understand. Thank you!
>
>
>
> (1)
> Correct me if I am wrong, but if I wanted to see all revisions that
> happened between date1 00:00:00 and date1 23:59:59 I could only:
>
> svn log -r{"date1 00:00:00"}:{"date1 23:59:59"}
>
>
> ...but would still have to throw out the first log entry, since that
> revision, which comes before "date1 00:00:00", would be "the most recent
> revision of the repository as of that date"...?

Yes, you will still have to "throw out" that first entry, if it's
prior to that timestamp. That's just how it's implemented.

> (2)
> One might be tempted to think that:
> svn log -r{"date1 23:59:59"}
>
> could yield the desired results, but would that only reveal the ONE
> revision before that datetime, and not all revisions fro that day?

I don't understand why one would be tempted to think that asking for a
log of a single point in time would return the log for a range of
times. If you want a whole day, ask for the logs for a whole day, not
one point in time during that day.

What you're describing is that when you request the log for revision
4, you'd expect to get the logs for revisions 3 through 6. Subversion
gives you what you ask for.

---------------------------------------------------------------------
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:55:52 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.