如果Subversion命令无法成功完成,可能是由于服务器问题,您的工作副本可能处于不一致的状态。在这种情况下,您需要在文件夹上使用
→ 。在工作副本的顶层这样做是个好主意。在清理对话,有其他有用的选项来将工作副本保持干净
的状态
如上所述,此选项试图将不一致的工作副本转换为可操作和可用的状态。这不会影响您所拥有的任何数据,而仅影响工作副本数据库的内部状态。这是您从旧版TortoiseSVN客户端或其他SVN客户端了解到的清理
命令。
如果选中此选项,所有写入锁定将从工作副本数据库中删除。对于大多数情况,清理工作需要此操作!
如果同时其他用户/客户端在使用工作副本,则只能取消选中这个选项。但是如果清理后失败了,你必须勾上这个选项以便清理能够成功运行。
Adjusts the recorded time stamps of all files, speeding up future status checks. This can speed up all dialogs that show working copy file lists, for example the Commit dialog.
Removes unused pristine copies and compresses all remaining pristine copies of working copy files.
有时,图标覆盖,尤其是文件资源管理器左侧的树状图中的图标不会显示其当前状态,或者图标缓存未能正确识别文件变动。此时,你可以使用此命令来进行一次强制刷新。
If this is checked, then all actions are done for all files and folders included with the svn:externals
property as well.
This is a fast and easy way to remove all generated files in your working copy. All files and folders that are not versioned are moved to the trash bin.
Note: you can also do the same from the
→ dialog. There you also get a list of all the unversioned files and folders to select for removal.这个命令恢复你本地所有未提交的修改。
Note: it's better to use the
→ command instead, because there you can first see and select the files which you want to revert.