tags:

views:

888

answers:

3

I have a large Java app that is split up into multiple projects. Each project has its own folder in a Subversion repository like so:

AccountingCore

  • trunk
  • branches
  • tags

Common

  • trunk
  • branches
  • tags

WebCommon

  • trunk
  • branches
  • tags

etc...

I want to start using git-svn locally instead of subversion.

This may be a stupid question, but is there a way to checkout all the projects in the repository at once (including branches and all) instead checking out each project individually?

Thanks, Tony

+1  A: 

If you have a shell, you could enter

for DIR in AccountingCore Common WebCommon; do mkdir $DIR; cd $DIR; git init; git svn init -s svn://host/path/$DIR; git svn fetch; cd ..; done

That is, if I made no mistakes.

bgeron
A: 

Yes. just checkout at the root path. If your repo is hosted here:

svn://host/path/AccountingCore svn://host/path/Common svn://host/path/WebCommon

Then do your git svn command on svn://host/path.

Ben Collins
A: 

I have many projects which are archived (no new commits) I want create a single project to have all the svn projects in it.

can someone suggest a solution, each project though hosted on same server but are different projects/repositories