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

Re: question about --revision DATE

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 2 Dec 2010 21:21:14 +0200

Andy Levy wrote on Thu, Dec 02, 2010 at 14:15:53 -0500:
> On Thu, Dec 2, 2010 at 13:55, Geoffrey Myers
> <lists_at_serioustechnology.com> wrote:
> > Andy Levy wrote:
> >>
> >> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
> >> <lists_at_serioustechnology.com> wrote:
> >>>
> >>> I'm hoping someone can explain the following output to me:
> >>>
> >>>  svn log --revision {2010-12-02}:{2010-12-02}
> >>> ------------------------------------------------------------------------
> >>> r5139 | esoteric | 2010-12-01 21:27:31 -0500 (Wed, 01 Dec 2010) | 2 lines
> >>>
> >>>
> >>>
> >>> svn log --revision {2010-12-01}:{2010-12-02}
> >>> ------------------------------------------------------------------------
> >>> r5137 | esoteric | 2010-12-01 20:22:17 -0500 (Wed, 01 Dec 2010) | 2 lines
> >>>
> >>> ------------------------------------------------------------------------
> >>> r5138 | esoteric | 2010-12-01 20:48:54 -0500 (Wed, 01 Dec 2010) | 5 lines
> >>>
> >>> ------------------------------------------------------------------------
> >>> r5139 | esoteric | 2010-12-01 21:27:31 -0500 (Wed, 01 Dec 2010) | 2 lines
> >>
> >>
> >> http://svnbook.red-bean.com/nightly/en/svn.tour.revs.specifiers.html#svn.tour.revs.dates
> >>
> >> Especially the "Is Subversion a day early?" box.
> >
> >
> > Okay, but why does the first return a single record, and the second return
> > 3?  I would expect the first to return either nothing or 3.
>
> Because it's the most recent revision as of the date you gave.

For the same reason that

svn log -r 5139:5139

prints one revision (not zero revisions).
Received on 2010-12-02 20:23:51 CET

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.