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屋!
查看全文