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

Re: checkout by date gives wrong version of repo

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 1 Oct 2008 15:29:46 -0500

On Oct 1, 2008, at 3:25 PM, <Paul_Koning_at_Dell.com> wrote:

> I wonder if it matters that some older revs are drastically out of
> time order. Some examples:
>
>
> $ svn log -q -r 320000 http://svn.apache.org/repos/asf
> ----------------------------------------------------------------------
> --
> r320000 | sandygao | 2004-07-23 18:16:09 -0400 (Fri, 23 Jul 2004)
> ----------------------------------------------------------------------
> --
> $ svn log -q -r 267652 http://svn.apache.org/repos/asf
> ----------------------------------------------------------------------
> --
> r267652 | (no author) | 2000-04-12 12:20:53 -0400 (Wed, 12 Apr 2000)
> ----------------------------------------------------------------------
> --
> $ svn log -q -r {2001-6-1} http://svn.apache.org/repos/asf
> ----------------------------------------------------------------------
> --
> r89250 | stoddard | 2001-05-31 22:58:44 -0400 (Thu, 31 May 2001)
> ----------------------------------------------------------------------
> --
> $ svn log -q -r 2 http://svn.apache.org/repos/asf
> ----------------------------------------------------------------------
> --
> r2 | gstein | 2003-01-15 16:44:56 -0500 (Wed, 15 Jan 2003)
> ----------------------------------------------------------------------
> --
> $ svn log -q -r 1 http://svn.apache.org/repos/asf
> ----------------------------------------------------------------------
> --
> r1 | gstein | 2003-01-15 06:46:49 -0500 (Wed, 15 Jan 2003)
> ----------------------------------------------------------------------
> --

Ok, yes, that's exactly the scenario I was talking about. This
repository was probably created by "svnadmin load"ing various other
repositories, so the revisions are not in chronological order, so the
"-r{date}" syntax will not be reliable with this repository. As I
understand it, "-r{date}" does a binary search across all revisions
to find the target revision; if any revision is not in order, this
will cause some searches to return incorrect results.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-01 22:30:22 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.