有很多帖子(例如 here 和 here ,更不用说 official documentation )询问/解释如何执行稀疏结帐,但我没有看到任何关于如何执行的帖子查询一个文件夹或一系列文件夹的深度。
无论如何都要问 Subversion,“传递给 svn update --set-depth 的深度设置是什么?”在文件夹上?
最佳答案
svn info
会告诉你。这是使用 svn update --set-depth=files
更新的目录:
> svn info "C:\path\to\directory"
Path: C:\path\to\directory
Working Copy Root Path: C:\path
URL: http://svn.example.com/path/to/directory
Relative URL: ^/path/to/directory
Repository Root: http://svn.example.com/path
Repository UUID: 3183f4db-b256-8143-8013-6b50bc517e3e
Revision: 4860
Node Kind: directory
Schedule: normal
Depth: files
Last Changed Author: abc
Last Changed Rev: 1234
Last Changed Date: 2014-12-09 14:52:55 -0500 (Tue, 09 Dec 2014)
行 Depth: files
表示更新深度。当深度为 infinity
时,这条线就不见了。否则,它将是“empty”、“files”或“immediates”之一(svn update
的帮助中列出的那些)。
请注意,对于稀疏 checkout ,它将是空
,因为稀疏 checkout 并不真正映射到任何其他值。
关于svn - 颠覆 : Query Sparse Checkout Status,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29376311/