不小心删除文件并将其添加回来后,我无法再进行比较

After accidentally removing file and adding it back I can't compare anymore

我用的是颠覆性的eclipse。我不小心从本地 svn 文件夹中删除了一个文件,刷新了同步视图,然后再次添加回来,并刷新了 svn 同步视图。

现在,当我右键单击该文件并 select 'open in compare editor' 时,我收到以下错误消息:

Get content for 'editor.cfm' failed.
svn: Cannot read from 'C:\workspace\abc\.svn\text-base\editor.cfm.svn-base': C:\workspace\abc\.svn\text-base\editor.cfm.svn-base'
(The system cannot find the file specified)

当我检查文件夹时,我看到文件 editor.cfm.svn-base 而不是文件 editor.cfm.svn-revert.

如何解决这个问题?看来我必须以某种方式将文件添加回去。

我是这样解决的:

  • 备份文件
  • 在 svn 中恢复了本地文件
  • 复制还原文件的备份

现在一切都恢复正常了。