gpt4 book ai didi

linux - svn export 除了一些目录之外的所有目录

转载 作者:IT王子 更新时间:2023-10-29 00:36:09 36 4
gpt4 key购买 nike

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

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

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

最佳答案

您可以使用 Sparse Directories Exclusion 的概念来实现这一点。关于它的详细介绍,你可以阅读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:

$ svn update --set-depth=infinity www 
A www
A www/links.html
A www/testing-goals.html

A www/tigris-permissions.html
A www/webdav-usage.html Updated to revision 36292.
$

关于linux - svn export 除了一些目录之外的所有目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14826748/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com