如何在一个命令中检出多个SVN存储库? [英] How can I checkout multiple SVN repositories in one command?

查看:137
本文介绍了如何在一个命令中检出多个SVN存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有250多个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

data/
..project1
..project2
..project3

etc

有没有我可以做的命令在命令行中自动执行该过程?手动执行250次以上将是很痛苦的事情。

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.

谢谢!

推荐答案

定义1个 meta存储库的简短过程(所有项目都定义为外部项目),我想不出纯SVN解决方案。

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

根据对服务器的访问权限,可以采用其他方法,例如ssh:

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

 for repo in `ssh user@host 'ls /var/svn-repos'`;do svn co <method of connecting/path>/$repo $repo;done;

简而言之:您需要一种非svn方法来列出所有存储库。

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

这篇关于如何在一个命令中检出多个SVN存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆