在IDEA中使用SVN协同开发(Depth选项解释)
使用svn更新项目时发现有一个Depth选项,里面总共有working copy、empty、files、immediates、infinity四个选项。
来自svn.apache.org 的解释是:
We have a new "depth" field in .svn/entries, which has (currently)
four possible values: depth-empty, depth-files, depth-immediates,
and depth-infinity. Only this_dir entries may have depths other
than depth-infinity.
depth-empty ------> Updates will not pull in any files or
subdirectories not already present.
depth-files ------> Updates will pull in any files not already
present, but not subdirectories.
depth-immediates -> Updates will pull in any files or
subdirectories not already present; those
subdirectories' this_dir entries will
have depth-empty.
depth-infinity ---> Updates will pull in any files or
subdirectories not already present; those
subdirectories' this_dir entries will
have depth-infinity. Equivalent to
today's default update behavior.
翻译一下,大概的意思就是:
在.svn/entries文件中有一个depth的新字段,(目前)有四个可选值:depth-empty、depth-files、depth-immediates,只有this_dir字段可以有除了depth-immediates外的可选值。
- depth-empty:更新将会拉取之前没有出现的任意文件或子目录。
- depth-files:更新将会拉取之前没有出现的文本,排除子目录。
- depth-immediates:更新将会拉取之前没有出现的任意文件或子目录;这些子目录的this_dir字段也有depth-empty值。
- depth-infinity:更新将会拉取之前没有出现的任意文件或子目录;这些子目录的this_dir字段也有depth-infinity值。等同于现在的默认更新行为。
发现没有working copy。又去各种搜索了一下。几个选项的大致意思如下:
Depth 使用该下拉列表来指定子目录递归的范围。可选值为:
- Working copy:从从来没有检出的仓库子树中获取文件或子目录。
- Empty:只包含当前文件。
- Files:只包含文件夹中的文件。
- Immediates:包含当前文件的直接子元素。
- Infinity:启用完整递归。
empty:不检出项目的任何文件;
files :包含文件夹中的文件。
immediates:目录的第一级;
infinity:整个目录所有文件