Re: How to import several subdirectories of a CVS repository?
BRM <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ---- > From: Michael Haggerty <[email protected]> > To: José Luis Rodríguez García <[email protected]> > Cc: [email protected] > Sent: Wed, December 1, 2010 3:10:47 PM > Subject: Re: How to import several subdirectories of a CVS repository? > > On 12/01/2010 09:51 PM, José Luis Rodríguez García wrote: > > I am using cvs2svn2.3.0 > > > > I hava a cvs repository with the next directories with the next structure: > > > > /dir1 > > /dir2 > > /dir3 > > /dir4 > > /dir5 > > > > I want to migrate only dir3 an dir5. How can I do it with cvs2svn > > without using a option file? > > If each directory is a separate project (and should get its own > trunk/tags/branches directories) then there is no good alternative to > using an options file. > > If the directories are all part of one project, then you can make a copy > of your CVS repository, delete the unwanted directories, then convert > the expurgated copy. > There is also another solution: 1. Convert the CVS to SVN without any changes. 2. Use svndumpfilter to filter out the unwanted paths. If the repo is small enough then that may be a good solution to do it quickly and easily. If the repo is not small enough - e.g. dir1, dir2, and dir4 are large components that will take lots of spance - then you really do not have a choice other than to do it before running through cvs2svn. Though now that I think about it....you could probably just convert /dir3 and /dir5 as separate conversions - treat them as CVSROOT - and then import each into SVN separately: $ cvs2svn --dumpfile=dir3.svndump ${CVSROOT}/dir3 $ cvs2svn --dumpfile=dir5.svndump ${CVSROOT}/dir5 $ svnadmin create ${SVNROOT}/combinedRepo $ svnadmin load --parent-dir dir3 < dir3.svndump $ svnadmin load --parent-dir dir5 < dir5.svndump I always converted using SVN dump files instead of having it directly input into an svn repository. It's always worked very well for me. HTH, Ben P.S. I think I got all the cvs2svn parameters correct. I don't have a local copy installed to verify; so I used an online manpage for it. ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2687116 To unsubscribe from this discussion, e-mail: [[email protected]].