What does a TortoiseSVN cleanup actually do?

前端 未结 3 1852
庸人自扰
庸人自扰 2021-01-31 14:08

What does a TortoiseSVN cleanup actually do?

I have not found a pattern, but I frequently get asked to do a \"cleanup\" while trying to commit code.

If TortoiseS

3条回答
  •  生来不讨喜
    2021-01-31 14:26

    It looks for inconsistencies. From the docs:

    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.

提交回复
热议问题