I am having a problem with the rename command in the Mercurial plugin. Mercurial has a rename command and that is working fine. The issue is that Idea comes along after the rename command has executed and refactors the class to reflect the name change. The problem seems to be that the refactor is only changing the memory version of the file and not the disk version. When you try and save the changed file (or the auto-save gets around to it) you get a message asking if you want to keep the memory version or the FS version. How can I sync the memory version and the file version when the refactor is happening after my context has returned?