You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Geoffrey Myers <li...@serioustechnology.com> on 2010/12/02 18:21:46 UTC

question about --revision DATE

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


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson

Re: question about --revision DATE

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Andy Levy wrote on Thu, Dec 02, 2010 at 14:15:53 -0500:
> On Thu, Dec 2, 2010 at 13:55, Geoffrey Myers
> <li...@serioustechnology.com> wrote:
> > Andy Levy wrote:
> >>
> >> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
> >> <li...@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).

Re: question about --revision DATE

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Andy Levy wrote on Thu, Dec 02, 2010 at 14:15:53 -0500:
> On Thu, Dec 2, 2010 at 13:55, Geoffrey Myers
> <li...@serioustechnology.com> wrote:
> > Andy Levy wrote:
> >>
> >> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
> >> <li...@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).

Re: question about --revision DATE

Posted by Geoffrey Myers <li...@serioustechnology.com>.
Andy Levy wrote:
> On Thu, Dec 2, 2010 at 13:55, Geoffrey Myers
> <li...@serioustechnology.com> wrote:
>> Andy Levy wrote:
>>> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
>>> <li...@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.

<Light goes on>

Thanks.

-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson

Re: question about --revision DATE

Posted by Andy Levy <an...@gmail.com>.
On Thu, Dec 2, 2010 at 13:55, Geoffrey Myers
<li...@serioustechnology.com> wrote:
> Andy Levy wrote:
>>
>> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
>> <li...@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.

Re: question about --revision DATE

Posted by Geoffrey Myers <li...@serioustechnology.com>.
Andy Levy wrote:
> On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
> <li...@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.

-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson

Re: question about --revision DATE

Posted by Andy Levy <an...@gmail.com>.
On Thu, Dec 2, 2010 at 13:21, Geoffrey Myers
<li...@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.