在 SVN 更新期间忽略文件夹 [英] Ignore a folder during SVN updates
问题描述
如果我 svn:ignore 一个非常大的文件夹,它会在 SVN 更新期间提高性能吗?
If I svn:ignore a really big folder will it improve performance during SVN updates?
我的项目中有这个非常大的 (>600MB) 文件夹.此文件夹中的文件根本不应更改.问题是每次我调用svn update"都需要很长时间.有没有办法在更新过程中忽略此文件夹以加快更新过程?
I have this really massive (>600MB) folder in my project. The files in this folder should not be changing at all. The problem is that every time I call "svn update" it takes forever. Is there a way to ignore this folder during updates to speed up the update process?
推荐答案
svn:ignore
仅适用于尚未在 Subversion 存储库中的文件.这个文件夹已经是.
The svn:ignore
is only for files that are not already in the Subversion repository. This folder already is.
您可以使用 svn update --set-depth exclude
folderName
从您的工作目录中删除此文件夹:
You can use the svn update --set-depth exclude
folderName
to remove this folder from your working directory:
$ svn update --set-depth exclude bigFolder #Removes "bigFolder" from workdir
D bigFolder
$
下次进行更新时,bigFolder 将不会出现在您的工作目录中.如果你想要它回来,你必须重置深度:
Next time you do an update, bigFolder won't show up in your working directory. If you want it back, you'll have to reset the depth:
$ svn update --set-depth infinity
U bigFolder
U bigFolder/File1
U bigFolder/File2
...
这篇关于在 SVN 更新期间忽略文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!