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

checkout by date and cvs2svn

From: J Robert Ray <jrray_at_imageworks.com>
Date: 2004-10-14 03:09:13 CEST

Hi folks,

I just had a fellow dev point out to me that checkout by date doesn't
work in our repository (i.e. svn checkout -r {2004-10-01} http://...).

We have been migrating from cvs on a project-by-project basis, and I
have been using cvs2svn to import slices of our cvs repository one at a
time.

As a result, the dates of the revisions in our repository are not
strictly in chronological order:

------------------------------------------------------------------------
r52883 | (no author) | 1997-09-19 13:58:59 -0700 (Fri, 19 Sep 1997) | 1 line
Changed paths:
    A /foo/branches
    A /foo/tags
    A /foo/trunk

New repository initialized by cvs2svn.
------------------------------------------------------------------------
r52882 | jrray | 2004-10-08 17:57:47 -0700 (Fri, 08 Oct 2004) | 1 line
Changed paths:
    A /foo

importing foo from cvs
------------------------------------------------------------------------

svn_repos_dated_revision() does a binary search across the revisions
searching for a date, assuming of course that the dates are ordered. I
like the comments in that file:

    If some moron comes along and sets a bogus datestamp, this routine
    might not work right.

I guess that's me. ;) I have to believe that the way I'm using cvs2svn
is not that uncommon.

Any advice? Thanks,

- Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 14 03:09:39 2004

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.