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

Re: changing repo layouts

From: Erick Calder <e_at_arix.com>
Date: Tue, 18 Aug 2009 23:46:55 -0700

On Aug 15, 2009, at 10:18 PM, David Weintraub wrote:

> On Sat, Aug 15, 2009 at 1:54 AM, Erick Calder <e_at_arix.com> wrote:
> the structure I want is: /project/trunk, /project/tags, /project/
> branches. I found the --trunk, --branches and --tags options
> available to cvs2svn but from the documentation I could not hope to
> figure out how to use these to build what I want...
>
> Okay, we converted one project at a time, so the --branches and --
> tags options allowed us to specify the location in the repository
> where we wanted the branches and tags. I am not a Python developer,
> so I didn't bother with the options file. However, I did find this
> piece of information which you might find very handy:
>
> <http://cvs2svn.tigris.org/faq.html#onetoone>
>
> Or you do what I did: Write a shell script to convert one project at
> a time, and specify where the trunk, tags, and branches for that
> project would be using the --trunk, --tags, and --branches command
> line options:
>
> for cvs_module in $CVSROOT/modules/*
> do
> cvs2svn -s $cvs_module-svn --trunk /modules/$cvs_module/trunk --
> branches /modules/$cvs_module/branches --tags /modules/$cvs-module/
> tags
> done
>
> Then use svnadmin dump and load to create a single Subversion
> repository. The Subversion repository revisions will come out
> somewhat wacky because all of module "A"'s transaction will come
> after module "B"s transactions, but it really doesn't affect
> anything in the long run.
>

I'm a little queasy about that approach just because, not really
knowing SVN, I don't know why I'd care about A's transactions being
after B's. I guess I'm not even sure what you mean by transactions.
so I decided to just let the utility create its structure and then
move the directories as I see fit... however, when I try it I get an
error:

# svn mv svn://janus/trunk/www /www/trunk
svn: No support for repos <--> working copy moves

and additionally, in reviewing the structure it created, I'm a little
confused because under CVS there aren't branches and tags... so I'm
not sure where to create these directories e.g. if I have a project /
Text/Roman, should I have /Text/trunk, /Text/Roman/trunk? and what if
there's /Text/Roman/Test (which isn't really a project but a directory
under a project) - then in that case shall I create /Text/Roman/Test/
trunk too?

yikes!

and then there is the /tags directory that seems to contain /tag/
directory where the directory seems to be a project... can I safely
assume it's a project? in that case could I have situations where
there are two projects under the same tag?

and still under /branches I find all my projects but there is a
directory "arix" in the middle...

I really do wish cvs2svn did the right thing to avoid all this
confusion!

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385104

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-19 08:45:44 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.