加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

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

发布时间:2020-12-26 13:34:36 所属栏目:Linux 来源:网络整理
导读:我正在将repo的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

(编辑:PHP编程网 - 黄冈站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读