SVN:仅检出/导出目录结构 [英] SVN: Checkout/export only the directory structure
本文介绍了SVN:仅检出/导出目录结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法执行 SVN 结帐(或导出),它会仅获取目录结构;也就是说,没有文件?
Is there a way to perform a SVN checkout (or export), which would fetch only the directory structure; that is to say, no files?
推荐答案
svn ls -R {svnrepo} | grep "/$" | xargs -n 1 mkdir -p
导出,而不是结帐.
[更新]
结账时:
env REPO={repo} sh -c 'svn ls -R $REPO | grep "/$" | xargs -n 1 svn co --depth=empty $REPO'
对于太大的东西,这会很慢.
This will be pretty slow for anything too large.
这篇关于SVN:仅检出/导出目录结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文