我正在将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