carpediemevive Posted January 25, 2012 Report Share Posted January 25, 2012 I'm attempting to bring in a subversion repository with the 3.0 importer, but I can't seem to get a URL to work for me. The problem is (I think) that I need to authenticate myself with another username. Is there a way to specify another user in the tool? Link to comment Share on other sites More sharing options...
manu Posted January 25, 2012 Report Share Posted January 25, 2012 One quick question, why are you using the 3.0 importer? why don't use the PlasticSCM 4.0 and fast-import it? Link to comment Share on other sites More sharing options...
carpediemevive Posted January 25, 2012 Author Report Share Posted January 25, 2012 I was familiar with the 3.0 importer so I just defaulted to it. I was investigating other fast-import type solutions to go directly to 4.0 but one problem is that this is (for all intents and purposes anyway) a hosted SVN server. I don't have direct access to it, I only have access to the repository. I thought (and I could be wrong) that the svn-git exporter required read access of the repository files directly on the server. If there's a better solution that I can use I'd love to hear about it, I just hadn't come across it in my research yet. Link to comment Share on other sites More sharing options...
manu Posted January 25, 2012 Report Share Posted January 25, 2012 Ey!! You can use the scrip created by icalvo in this topic: http://www.plasticscm.net/index.php?/topic/672-problem-with-fast-import-couldnt-process-command/page__p__3250#entry3250 svnrepo=https://SVNSERVER/svn/REPO plasticserver=PLASTICSERVER:PORT for project in `svn ls $svnrepo`; do project=${project%/} # strip final slash echo Processing project $project... echo --------------------------------------------------- # check if repo already exists at Plastic server grepcount=`cm lrep | grep -c $project`; if [ "$grepcount" == "0" ]; then git svn clone $svnrepo/$project --stdlayout cd $project git fast-export --all -C --tag-of-filtered-object=drop --signed-tags=strip > repo.fe cm mkrep $project@$plasticserver cm rnbr /main@$project@$plasticserver master cm fi $project@$plasticserver repo.fe cm rnbr /master@$project@$plasticserver main cd .. else echo Project already exists at Plastic SCM server fi done At least the "git svn clone $svnrepo/$project --stdlayout" works for online svn servers Link to comment Share on other sites More sharing options...
carpediemevive Posted January 25, 2012 Author Report Share Posted January 25, 2012 Thank you so much! I just started down the "git svn clone" path and finally got it to clone (stupid non-standard subversion layouts!) this will absolutely help me bring it all the way into Plastic. Lucky for me it's only 1 project! Link to comment Share on other sites More sharing options...
manu Posted January 25, 2012 Report Share Posted January 25, 2012 Here to help! Tell us if everything goes fine! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.