gpt4 book ai didi

svn - 使用深度立即数后跟深度无穷大时奇怪的 SVN 行为(丢失文件)

转载 作者:行者123 更新时间:2023-12-02 01:59:17 24 4
gpt4 key购买 nike

好吧,我有一个奇怪的问题需要你思考一下。


  • 存储库:
    • 修订版 0:空
    • 修订版 1:dir1/f1.txt
    • 修订版 2:dir1/f1.txt , dir1/f2.txt , dir2/f3.txt

你的典型,对吧?


现在是奇怪的地方。我用 SVN 1.6.5 和 1.6.13 都得到了这个。我将无法升级以尝试摆脱它。我在工作副本根目录中运行这些命令。

  • 命令
    1. svn update -r1 - 成功更新到修订版 1,工作副本看起来不错。
    2. svn update --depth immediates - 一切都好,dir2已创建且为空,没有其他更改。
    3. svn update dir1 --set-depth infinity - SVN 说好的,但是 dir1/f2.txt只是不会出现在我的工作副本中。
    4. svn update - 只是因为我越来越焦虑 - 没什么,dir1/f2.txt仍然不会弹出。
    5. svn update -r1 - 错误:dir1/f2.txt不受版本控制(哇?)
    6. svn update - 现在我得到 dir1/f2.txt在.

如果有人知道为什么dir1/f2.txt当我运行第 3 步时拒绝出现,如果我做错了什么,请分享。

最佳答案

这已被确认为 SVN 1.6 中的错误。解决方案是升级到 SVN 1.7 或 SVN 1.8。

来自马口(SVN 开发列表):

On Thu, Aug 8, 2013 at 1:34 PM, Philip Martin wrote:

svnadmin create repo
svnmucc -mm -U file://`pwd`/repo mkdir D1 put repo/format D1/f1
svnmucc -mm -U file://`pwd`/repo put D1/f2 mkdir D2 put repo/format D2/f3
svn co file://`pwd`/repo@1 wc
svn up --depth immediates wc
svn up --set-depth infinity wc/D1
svn st -v wc

With 1.7 and 1.8 the status shows

             2        2 pm           wc
2 2 pm wc/D1
2 1 pm wc/D1/f1
2 2 pm wc/D1/f2
2 2 pm wc/D2

With 1.6 the status shows

             2        2 pm           wc
2 2 pm wc/D2
2 2 pm wc/D1
2 1 pm wc/D1/f1

So this is a bug in 1.6 that is fixed in 1.7 and 1.8.

-- Philip Martin | Subversion Committer WANdisco | Non-Stop Data

关于svn - 使用深度立即数后跟深度无穷大时奇怪的 SVN 行为(丢失文件),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18114102/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com