I can't undo changes to some resources in RTC, because they're “out of sync with the file system”. Help please :(

大兔子大兔子 提交于 2019-12-06 05:44:22
VonC

You should be able to:


This thread on jazz.net has a more complete but dangerous solution:

(preface: ehughes does advise in the comment:

Don't reload!
The user's Eclipse workspace has the wrong view of the filesystem, it just needs to be refreshed.
Reloading for this is like using an atomic weapon to kill a fly. Just refresh! It's easy, quick, and painless!

)

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.

(actually it can erase/delete local changes)

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.


Note: that same thread mentions:

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!