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

Re: svn log off by one revision?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2003-12-17 05:24:07 CET

Dominic Anello <danello@danky.com> writes:

> Hello,
>
> I am trying to figure out why when I try to specify a date range using
> the -r flag to the log command, I apparently get one extra entry
> returned. E.g. I am trying to get all commits that occurred between
> midnight on 12/15 and midnight on 12/16, but I end up also getting the
> last commit from *before* the 15th as well.

Our algorithm for turning a date into a revision is unidirectional --
that is, it doesn't know that sometimes you want a date like
12-15-2003 to mean "the last revision which occured before
12-16-2003:00:00:00" and sometimes "the first revision which occurred
on or after 12-15-2003:00:00:00".

So what you are seeing is likely this:

   At 12-15-2003:00:00:00, HEAD was revision 79.
   At 12-16-2003:00:00:00, HEAD was revision 89.
   So, 'svn log -r 79:89', which is always inclusive.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 17 05:26:12 2003

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.