gpt4 book ai didi

svn - TortoiseSVN 清理实际上做了什么?

转载 作者:行者123 更新时间:2023-12-02 04:23:51 25 4
gpt4 key购买 nike

TortoiseSVN 清理实际上做了什么?

我还没有找到模式,但我经常被要求在尝试提交代码时进行“清理”。

如果 TortoiseSVN 知道它何时变脏,为什么它不自行运行清理?

最佳答案

编辑:我认为它不是自动的,因为它需要中止操作并解锁/path 中的工作副本。

颠覆书:

Recursively clean up the working copy, removing locks and resuming unfinished operations. If you ever get a working copy locked error, run this command to remove stale locks and get your working copy into a usable state again. ” Note that in this context lock refers to local filesystem locking, not repository locking.

这基本上是尝试恢复 SVN 发生的任何错误的一种方法。

有关清理的文档:

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-cleanup.html

"If a Subversion command cannot complete successfully, perhaps due to server problems, your working copy can be left in an inconsistent state. In that case you need to use TortoiseSVN → Cleanup on the folder. It is a good idea to do this at the top level of the working copy.

Cleanup has another useful side effect. If a file date changes but its content doesn't, Subversion cannot tell whether it has really changed except by doing a byte-by-byte comparison with the pristine copy. If you have a lot of files in this state it makes acquiring status very slow, which will make many dialogs slow to respond. Executing a Cleanup on your working copy will repair these “broken” timestamps and restore status checks to full speed."

关于svn - TortoiseSVN 清理实际上做了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1539772/

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