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
>>> 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
>>> 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
>>> The command that I have used is:
>>> svnadmin --parent-dir wildjava.org load C:\svnrepos\wildjava.org
>>> 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
> Parent directory B
> My question is: if I import SEPARATELY the dump from the CVS, can I
> obtain a repository layout like this?
> Parent directory
> 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:
And then as a second step, after you're done importing it like that,
rearrange it to be in the layout you want:
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: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue May 30 15:24:50 2006