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

RE: Re: svn log timestamp bug?

From: Gale, David <David.Gale_at_Hypertherm.com>
Date: 2006-05-24 15:47:02 CEST

Ryan Schmidt wrote:
> On May 24, 2006, at 14:54, Johnathan Gifford wrote:
>
>>> When you do revisions by date/time, the current revision at the
>>> start time is what was reported. So, if at 2006-05-17T00:05, the
>>> current latest revision is what was checked in at 2006-05-16
>>> 17:18:43 -0500, that's what will be reported as the first revision
>>> in the log.
>>>
>>> It took me an hour or two while working on my log reporting script
>>> to reconcile this in my head too.
>>>
>>> What's the timestamp on revision 14663? It should be later than
>>> 2006-05-17T00:05 If it's not, then there might be a bug.
>>
>> The next revision in that path:
>>
>> r14696 | jdoe | 2006-05-17 15:30:47 -0500 (Wed, 17 May 2006) | 1 line
>>
>> I've been running a report script for four weeks with the above
>> command and this is the first time this anomaly has shown up. I
>> would agree with your statement about the latest revision if I was
>> only looking one day, but I'm searching by a range. I would expect
>> only revisions between that range to be returned.
>
> Well, that's not what Subversion does, and that's not what's
> described in the book.

Actually, it *is* what's described in the book:

(http://svnbook.red-bean.com/nightly/en/svn.tour.revs.html#svn.tour.revs
.dates)
"You can also use a range of dates. Subversion will find all revisions
between both dates, inclusive:"

I played around with this a bit, and I couldn't convince myself that
subversion was handling things correctly (or, at least, consistently):

$ svn log -q -r{2005-11-22T00:05}:{2005-11-30T00:05} <file>.pl
------------------------------------------------------------------------
r17 | dgale | 2005-11-11 09:48:08 -0500 (Fri, 11 Nov 2005)
------------------------------------------------------------------------
r18 | dgale | 2005-11-23 10:04:04 -0500 (Wed, 23 Nov 2005)
------------------------------------------------------------------------
r25 | dgale | 2005-11-29 08:12:01 -0500 (Tue, 29 Nov 2005)
------------------------------------------------------------------------
r27 | dgale | 2005-11-29 17:18:53 -0500 (Tue, 29 Nov 2005)
------------------------------------------------------------------------
# The r17, which is clearly earlier than the requested range, mirrors
what Johnathan is seeing.

$ svn log -q -r{2005-11-23T00:05}:{2005-11-30T00:05} <file>.pl
------------------------------------------------------------------------
r25 | dgale | 2005-11-29 08:12:01 -0500 (Tue, 29 Nov 2005)
------------------------------------------------------------------------
r27 | dgale | 2005-11-29 17:18:53 -0500 (Tue, 29 Nov 2005)
------------------------------------------------------------------------
# r18 doesn't show up, despite that being the last version of the file
before the requested range.

Either I'm misunderstanding something, or one of these two commands
isn't working as expected. (I'd argue that the first command isn't
working, since "svn log -r20:30 <file>.pl" only reports revisions 25 and
28--revision 18 is out of range.)

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 24 15:48:21 2006

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.