尽管它可能有效,但它依赖于一些不能 100% 保证的东西:当您使用 httpd 作为您的 Subversion 存储库服务器时,您可以使用浏览器。
您可以通过使用--depth
参数 onsvn co
和--set-depth
参数 when doing来限制结帐svn update
。这将允许您只签出您想要的那些文件夹和目录,而无需拉下所有内容。这有时被称为稀疏结帐。作为奖励,这是一个实际的结帐。你可以做提交——有些事情wget
不会让你做:
$ # I want to just checkout the immediate files under the URL:
$ svn co --set-depth=immediates $REPO/trunk/foo
A foo/first
A foo/second
A foo/third
# I want to checkout everything in first and third, but nothing in second:
$ cd foo
$ svn up --set-depth=none second #Removes directory second
$ svn up --set-depth=infinity first third
使用它应该适用于您的原始示例:
$ svn co --depth=none http://www.urlrepo.com/ workdir
$ cd workdir
$ svn up --set-depth=none base
$ cd base
$ svn up --set-depth=none of
$ cd of
$ svn up --set-depth=infinity repo