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

Converting CVS history

From: Buddy Burden <buddy_at_barefoot.net>
Date: 2004-01-07 22:33:58 CET

Folks,

I had such a great response last time that I'm back. :-)

I've got my Subversion repository up and running, and I can see it from my
browser. Now I want to convert _some_ of my existing CVS stuff over. So
I'm trying to use cvs2svn.py.

Let's say I have a (blank) Subversion repository layout something like this:

        ProjA/
        ProjB/
                trunk/
                branches/

And let's say I have a (full) CVS repository layout something like this:

        CVSROOT/
        Proj1/
        Proj2/
        [etc ad infinitum]

Now, here's the deal: I want CVS's Proj2 to land in Subversion's
ProjB/trunk. First I tried this:

        cvs2svn.py -v -s http://localhost/repos/ProjB/trunk /path/to/cvs/Proj2

but of course that didn't work because cvs2svn.py calls svnadmin load, which
expects a path and not an URL. So next I tried this:

        cvs2svn.py -v -s /path/to/svn --trunk=ProjB/trunk /path/to/cvs/Proj2

but that doesn't work either: Error: cannot pass multicomponent path to
--trunk, --tags, or --branches yet.

So how can I do this?

Also, just for the heck of it (i.e., it's not crucial), is there any way I
could combine two CVS files in Subversion? IOW, Proj2 just happens to
contain a file which got renamed. Now, obviously CVS was too stupid to
grasp this and, as far as _it's_ concerned, they're two completely separate
files. But of course Subversion _does_ understand this concept, so I was
wondering if I could somehow tweak it into understanding it retroactively
(so to speak).

The following information may also be helpful:

1) I just installed Subversion for the first time ever on Monday. I've read
about 90% of the book, but other than that I have no clue what I'm doing.

2) This is primarily a learning exercise right now, so just getting it done
quick isn't necessarily the main point.

3) I don't know Python worth squat, but I wouldn't mind attempting to hack
it if that's what it took.

Thanx all.

                -- Buddy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 8 20:27:11 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.