List<String> args = new LinkedList<String>();
args.addAll(options);
args.addAll(chunk);
- new HgCommandExecutor(project).execute(repo, "revert", args, null);
+ new HgCommandExecutor(project).executeInCurrentThread(repo, "revert", args);
}
project.getMessageBus().syncPublisher(HgVcs.BRANCH_TOPIC).update(project);
}
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vcs.FilePath;
-import com.intellij.openapi.vcs.ObjectsConvertor;
import com.intellij.openapi.vcs.VcsException;
import com.intellij.openapi.vcs.changes.Change;
import com.intellij.openapi.vcs.changes.ContentRevision;
import com.intellij.openapi.vcs.rollback.RollbackEnvironment;
import com.intellij.openapi.vcs.rollback.RollbackProgressListener;
-import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;
import org.zmlx.hg4idea.HgRevisionNumber;
new HgRevertCommand(project).execute(repo, files, revisionNumber, false);
new HgResolveCommand(project).markResolved(repo, files);
}
- LocalFileSystem.getInstance().refreshIoFiles(ObjectsConvertor.fp2jiof(filePaths), true, true, null);
}
}