您的位置 首页 Linux

linux – svn导出除了一些目录以外的所有目录

我正在将repo的svn导出到临时位置,然后在将代码库复制到部署目录之前删除一些目录.

有没有办法在“导出”命令期间“排除”目录列表?

这样做的原因是导出更快(不需要获取我在此部署中删除的东西)尾部,因此部署脚本更快.

解决方法

您可以使用稀疏目录排除的概念来实现此目的.有关它的详细信息,您可以阅读它
here.

这blog post也解释了上述概念.

Say I no longer care about what’s going on some directory of one my
project working copies. Maybe I don’t care about the Subversion
project’s website any more. Well,with this new exclusion feature,I
can tell Subversion to remove that directory:

$cd ~/projects/subversion/trunk 
$svn update --set-depth=exclude www
D         www 
$ls www ls: cannot access www: No such file or directory 
$

Done deal. When I update my working copy in the future,I
will not receive any changes aimed at that www directory. If I later
decide that I once again care about that directory,I can
“resubscribe” to it again:

06001

关于作者: dawei

【声明】:金华站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

热门文章