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

Re: cvs to svn conversion...

From: Bob Proulx <bob_at_proulx.com>
Date: 2005-05-01 23:04:12 CEST

Garrett Rooney wrote:
> bruce wrote:
> >i'm looking at inserting the results of a cvs tar file into svn. in looking
> >through the tar dir structure, all i see are the actual source/data files
> >for the project, and the CVS dirs. the CVS dirs have 'Entries Root
> >Repository' dirs, but nothing is underneath these dirs...
> >
> >i don't see nay kind of ',v' files/dirs.
> >
> >can i simply remove the CVS dir stuff, and then simply insert the
> >source/data files in the svn and start from scratch.. i'm assuimg that any
> >changes to the files from the project will be in the actual versions of the
> >source files that i have....
> >
> >am i missing something..
>
> If you don't want the history you can just remove the CVS directories
> and import the rest. If you want history you'll have to do more work.
> What you've got is a CVS working copy, not a CVS repository, if you get
> a copy of the repository it'll have the ',v' files, and cvs2svn will be
> able to convert into an svn repository.

If you don't care about the revision history and just want to start
fresh you can use the 'cvs export' command to check out the project
without creating the CVS files.

You say you have a cvs tar file. Someone did a 'cvs checkout' to
create a working directory and then tar'd that working sandbox up into
a file? Not the best way to do that. If that is all you have then
you don't have the history and can't convert the history into
subversion. The best you can do is check in or import the current set
of files.

What you want if you want to convert the history is the CVSROOT
files. You can deduce where you checked out from by:

  cat CVS/Root

If you have access to that location you can copy or tar up or whatever
those ,v files there. Those are the files that you would convert with
'cvs2svn'a into a subversion repository to preserve the previous
project change history.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 1 23:06:13 2005

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.