Re: Too many trunks
Michael Haggerty <[email protected]> Fri, 29 Jul 2016 21:58:30 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
On 07/29/2016 12:18 PM, Kerry, Richard wrote:
> I am seeking to insert some folders, extracted from a CVS
> repository, into a Subversion repository. As such there are
> trunk/branches/tags folders already in existence, and I need to insert
> the extracted/converted folders at a specific place in the existing
> structure. I don't seem to be able to do this at the moment. I think I
> will need to be able to request cvs2svn to handle names in a particular
> way, and I'm not sure how, or even if it is possible.
>
> In the CVS repository I have the following structure:
>
> <cvsrepo>/Drivers/Device/App1/<files>
>
> The Subversion repository has the following structure:
>
> <svnrepo>/Drivers/trunk/Device/App1/<files>
>
> (with branches and tags in the corresponding places)
It's not so clear what you want because in your example you have only
mentioned a single project. I assume that you have other projects. Do
you want to place them like this
<svnrepo>/Drivers/trunk/Device/App1/<files>
<svnrepo>/Drivers/trunk/Device/App2/<files>
? Or maybe
<svnrepo>/Drivers/trunk/Device/App1/<files>
<svnrepo>/Media/trunk/Device/App3/<files>
<svnrepo>/Storage/trunk/Device/App4/<files>
Does the Subversion repository already exist and have content in it?
Normally life is easiest and the results are best if you convert all
projects at once, into a brand new Subversion repository.
If you want the first kind of layout, then the easiest is to rearrange a
copy of the CVS repository *before* the conversion, placing the
directories like so:
<cvsrepo>/Drivers/Device/App1/<files>
<cvsrepo>/Drivers/Device/App2/<files>
Then ask cvs2svn to convert the input path `<cvsrepo>/Drivers`, using
the following options
--trunk=Drivers/trunk
--branches=Drivers/branches
--tags=Drivers/tags
For the second kind of layout you should do a "multiproject conversion",
described here:
http://cvs2svn.tigris.org/faq.html#onetoone
But if you already have content in your Subversion repository (for example,
<svnrepo>/Drivers/trunk/Device/App0/<files>
<svnrepo>/Drivers/branches/<branch>/Device/App0/<files>
<svnrepo>/Drivers/tags/<tag>/Device/App0/<files>
), then it is going to be very hard (i.e., nearly impossible) to
insinuate the new content into the existing content. The branches and
tags in particular will be a mess because they probably differ among
projects.
Michael
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=3180643
To unsubscribe from this discussion, e-mail: [[email protected]].