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

Re: svn log get revisions by date

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Wed, 27 Apr 2011 02:00:36 -0500

On Apr 26, 2011, at 19:33, Hashir Baqai wrote:

> Johan,
>
> I've seen this referenced wherever the issue arises. Pasting what I assume is the portion that is of interest:
>
> Is Subversion a Day Early?
>
> If you specify a single date as a revision without specifying a time of day (for example 2006-11-27), you may think that Subversion should give you the last revision that took place on the 27th of November. Instead, you'll get back a revision from the 26th, or even earlier. Remember that Subversion will find the most recent revision of the repository as of the date you give. If you give a date without a timestamp, such as 2006-11-27, Subversion assumes a time of 00:00:00, so looking for the most recent revision won't return anything on the 27th.
>
> If you want to include the 27th in your search, you can either specify the 27th with the time ({"2006-11-27 23:59"}), or just specify the next day ({2006-11-28}).
>
> You can also use a range of dates. Subversion will find all revisions between both dates, inclusive:
>
> $ svn log -r {2006-11-20}:{2006-11-29}
>
> This lead me to believe that by specifying a date and time range, I could be sure that I only received commits made between the two. My post is addressing an issue that arises despite doing this. If this is not considered a bug (although I personally feel that it is), then perhaps it could at least be clarified a bit further in the documentation.

I agree the wording of the book is not clear on this point. You should submit this feedback to the authors of the book; they have their own mailing list.
Received on 2011-04-27 09:01:16 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.