How do I modify a plugin so revert works with subversion on AppCode 1.6?

I love the idea behind the AutoRevert plugin and want to use it within AppCode. https://github.com/dkandalov/auto-revert-plugin

It appears to work at first, but when revert is supposed to kick in, nothing happens and my code files remain as they are. :(

In the following file:

https://github.com/dkandalov/auto-revert-plugin/blob/master/src/ru/autorevert/IdeActions.java

The author has got the following code:

               SwingUtilities.invokeAndWait(new Runnable() {
                    @Override public void run() {
                         LocalChangeList changeList = ChangeListManager.getInstance(project).getDefaultChangeList();
                         if (changeList.getChanges().isEmpty()) {
                              result[0] = false;
                              return;
                         }
                         new RollbackWorker(project, true).doRollback(changeList.getChanges(), true, null, null);
                         for (Change change : changeList.getChanges()) {
                              FileDocumentManager.getInstance().reloadFiles(change.getVirtualFile());
                         }
                    }
               });


Is there anything obvious about this that would mean it doesn't work on AppCode/subversion?

It'd be ideal if there was a quick change I could make myself to the code to get it working on AppCode.

Thanks!

Please sign in to leave a comment.