svn - 颠覆 : Query Sparse Checkout Status

标签 svn sparse-checkout

有很多帖子(例如 herehere ,更不用说 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/

相关文章:

svn - GIT和SVN在 merge 冲突解决上有什么区别

linux - 按照 SVN 中的符号链接(symbolic link)

version-control - 在存储库中的项目上选择性 checkout 或查看

没有前导目录的 Git 稀疏 checkout

Git 从存储库中提取文件夹的内容

git - 使用 git 只克隆一个子目录

SVN:忽略子文件夹

java - 大型 Maven 项目的存储库布局

java - 使用 svnkit 获取文件的先前修改版本

git - Jenkins 稀疏 checkout : only content of directory