Thank you a lot Ryan, all ok
--------------------------------------------------------------------------------------
Ing. Francesco Dalan
M.B.M. Italia S.r.l. Via Pellizzo 14/A 35128 Padova
Tel. +39.49.8995731 Fax +39.49.8995722 Cell. +39.348.3675906
E-mail : f.dalan@mbm.it
-----Messaggio originale-----
Da: Ryan Schmidt [mailto:subversion-2006q2@ryandesign.com]
Inviato: marted́ 30 maggio 2006 15.24
A: Subversion List; Ing. Francesco Dalan
Oggetto: Re: load problem
Please remember to keep your replies on the mailing list:
Ing. Francesco Dalan wrote:
>>> I have converted and loaded a project from CVS to SVN and is all
>>> ok.
>>> Now I want to convert an other project from my CVS and load it into
>>> SVN in the same parent directory of the first project but, when i
>>> use the svnadmin load command, I have this error <<< Started new
>>> transaction, based on original revision 1
>>> * adding path : wildjava.org/trunk ...svnadmin: File already
>>> exists: filesy
>>> stem 'C:/svnrepos/wildjava.org/db', transaction '27-1', path
>>> 'wildjava.org/trunk'.
>>>
>>> The command that I have used is:
>>> svnadmin --parent-dir wildjava.org load C:\svnrepos\wildjava.org
>>> <cvs2svn-dump
>>>
>>> How can do it?
>>
>> I don't understand the question. You can't have two directories (or
>> files) of the same name in the same place. You can't do it on your
>> hard drive, and you can't do it in a Subversion repository. The error
>> message says that your repository already contains a directory
>> wildjava.org/trunk, presumably from your first import, so you cannot
>> now create a second directory by that exact same name. Pick a
>> different name. Presumably the first project you imported was the one
>> you've called "wildjava.org" so now the second project you're
>> importing should have a second name.
>> (Otherwise, how would you tell the two projects apart?)
>
> thank you for the answer but you have misinterpreted to me.
> If I use your suggestion I will obtain a layout like this:
> Parent directory A
> trunk
> projectA
> ...
> Parent directory B
> trunk
> projectB
>
> My question is: if I import SEPARATELY the dump from the CVS, can I
> obtain a repository layout like this?
> Parent directory
> trunk
> projectA
> projectB
> ...
>
> If so, how can do it?
>
> Thank you in advance
I haven't imported from CVS so I don't know exactly. It sounds like you have a directory in each CVS project called "trunk" (or else, cvs2svn is creating it for you; I don't know because I've never looked at cvs2svn).
Sounds like you may want to import to a structure like this first:
repository
projectA
trunk
branches
projectB
trunk
branches
And then as a second step, after you're done importing it like that, rearrange it to be in the layout you want:
repository
trunk
projectA
projectB
branches
projectA
projectB
Like this:
svn mkdir $REPO/trunk
svn mkdir $REPO/branches
svn mv $REPO/projectA/trunk $REPO/trunk/projectA svn mv $REPO/projectB/trunk $REPO/trunk/projectB svn mv $REPO/projectA/branches $REPO/branches/projectA svn mv $REPO/projectB/branches $REPO/branches/projectB svn rmdir $REPO/projectA svn rmdir $REPO/projectB
Perhaps you can ask on the cvs2svn list whether there is an easier way.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 30 18:48:38 2006