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

Re: svn log timestamp bug?

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-24 14:59:46 CEST

On May 24, 2006, at 14:26, Johnathan Gifford wrote:

> When I run the below svn command:
>
> svn log -v -r {2006-05-17T00:05}:{2006-05-24T00:05} --username XXXX
> --password XXXX http://myserver.com/to/my/path
>
> In the results I consistently get this revision:
>
> r14662 | jdoe | 2006-05-16 17:18:43 -0500 (Tue, 16 May 2006) | 1 line
>
> The timestamps used specify any revision between 5/17/2006 at 12:05
> AM to 5/24/2006 at 12:05 AM should be outputted. But this result
> is dated 5/16/2006 at 5:18 PM?!?!?!? It is not in the timestamp
> range. Even if you include the offset (-0500) that still doesn't
> put it in the range. Should this be showing up? I've also tried
> other timestamp formats ( http://svnbook.red-bean.com/nightly/en/
> svn.tour.revs.html#svn.tour.revs.dates ) and also get the same
> revision showing up.

As explained at the URL in the book you gave, Subversion will find
the most recent revision as of the given date/time -- meaning, it'll
give you the revision on or before that date/time:

> When you specify a date as a revision, Subversion finds the most
> recent revision of the repository as of that date:
>
> $ svn log --revision {2002-11-28}
> ----------------------------------------------------------------------
> --
> r12 | ira | 2002-11-27 12:31:51 -0600 (Wed, 27 Nov 2002) | 6 lines
> …

If you ask for {2006-05-17T00:05} but the last change you made before
2006-05-17T00:05 was on 2006-05-16T17:18:43, then you'll get the
revision from 2006-05-16T17:18:43.

---------------------------------------------------------------------
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:01:05 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.