Jump to content

Subversion Import


carpediemevive

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...