我对项目中的一些文件进行了更改(它们是使用工具自动生成的)。
我想回滚这些更改,但是当我单击“撤消”时,会出现一条错误消息,告诉我“运行撤消本地更改时发生问题”,原因是“资源与文件系统不同步”。
现在我真的很想撤消我的更改:|
大家有什么想法吗?
谢谢
最佳答案
您应该能够:
- 启动刷新沙箱(不会提交任何内容),如上一个问题“Why aren't my pending changes being shown in RTC?”所示
- 然后撤消本地更改
这个thread on jazz.net有一个更完整但危险的解决方案:
(前言:ehughes在评论中提出建议:
不要重新加载!
用户的 Eclipse 工作区的文件系统 View 错误,只需刷新即可。
重新装弹就像用原子武器杀死一只苍蝇一样。刷新即可!它简单、快速、无痛!
)
What matters is whether the metadata associated with the sandbox is synchronized with the metadata about the workspace in the repository.
(The fact that it seems in sync to you is not sufficient :-).And the right answer is to re-load, with the "reload projects out of sync" action.
In my experience, this will never overwrite any of your local changes, and it definitely will not change the date stamp on any file that is currently loaded and in-sync with what is in the repository.
(实际上它可以删除/删除本地更改)
But until we get confirmation from the RTC SCM team that the "re-load out of synch" operation will never overwrite local changes, I'd store a copy of your sandbox in some temp directory before doing the load, just in case.
注意:同一线程提到:
this error message should be improved.
It should say something like:
Files in your sandbox are out of sync with your repository workspace
I've submitted work item 185778 to get this fixed.
关于java - 我无法撤消对 RTC 中某些资源的更改,因为它们是 "out of sync with the file system"。请帮助:(,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9804000/