Re: CVS2SVN --force-branch not working.
Michael Haggerty <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
Please include the information suggested in the FAQ entry "How do I report a bug?" [1]. On 02/24/2011 04:38 AM, Anzo wrote: > I'm badly in need of help.I was struggling since 4 weeks no luck though . > > I've a copy of the CVS(6 GB) repository which has been taken from one our > UNIX MACHINE to windows 2003 server.I'm trying to migrate the code to SVN. > Below are the commands which i've used on windows. > > 1) C:\Python27\python cvs2svn --force-branch=”triod_one_1.2” > --force-branch="crome_eight" --exclude=".*" --svnrepos=E:\code\test1 > E:\code\CVS --sort="H:\UnxUtils\usr\local\wbin\sort.exe" > --encoding="ISO-8859-15" > > Result of the above command: It has passed all the passes and it has > converted only trunk even though i've not passed --trunk-only flag. The --exclude=".*" option tells cvs2svn to discard all tags and branches, so the only branches that you should expect in the output are the ones that you listed explicitly: "triod_one_1.2" and "crome_eight". Since CVS doesn't allow branches to contain periods, the former branch looks very suspect. Perhaps neither one matches the names of branches that actually exist in your CVS repository? I suggest running with --write-symbol-info=FILENAME to see what symbol names cvs2svn actually found in your repo. > 2)Also we've too many unlabeled branches, so i decided to remove all > first.So i have used below command > C:\Python27\python cvs2svn --exclude=”unlabeled.*” > --svnrepos=E:\code\test1 E:\code\CVS > --sort="H:\UnxUtils\usr\local\wbin\sort.exe" --encoding="ISO-8859-15" > > It didn't work. It has just converted all the code TO SVN repo including the > unlabeled.I've used exclude in below ways as well. > --exclude="unlabeled.\*" > --exclude="unlabeled-.*" > --exclude="unlabeled.*" I don't actually know how command-line quoting works on Windows, but if you can get the option "--exclude=unlabeled.*" through to cvs2svn, then it should work correctly. > Actually, we've around 9000(branches,tags,trunk) out of which i required to > convert around 4000 branches,tags,trunk.Kindly help on this. You might want to use --write-symbol-info and --symbol-hints to manage this large number of symbols. Michael [1] http://cvs2svn.tigris.org/faq.html#reportingbugs -- Michael Haggerty [email protected] http://softwareswirl.blogspot.com/ ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2707087 To unsubscribe from this discussion, e-mail: [[email protected]].