天天看點

svn怎麼檢出兩個位址項目,如何在一個指令中檢出多個SVN存儲庫?

svn怎麼檢出兩個位址項目,如何在一個指令中檢出多個SVN存儲庫?

I have over 250 SVN projects I need to checkout from my server, and I was wondering if there was a way I could automate the process. All the projects are in the same file:

data/

..project1

..project2

..project3

etc

Is there a command I could do in the command line to automate the process? Doing it manually 250+ times would be a serious pain.

Thanks!

解決方案

Short of defining 1 'meta'-repo, with all projects defined as external, I can't think of a pure-svn solution.

Depending on your access to the server other methods could be employed, for instance with ssh:

for repo in `ssh [email protected] 'ls /var/svn-repos'`;do svn co /$repo $repo;done;

In short: you need a non-svn method to list all repos.