Search in sources :

Example 1 with HgUpdateConfigurationSettings

use of org.zmlx.hg4idea.provider.update.HgUpdateConfigurationSettings in project intellij-community by JetBrains.

the class HgUpdateTest method updateThroughPlugin.

private List<VcsException> updateThroughPlugin() throws VcsException {
    HgRegularUpdater updater = new HgRegularUpdater(myProject, projectRepoVirtualFile, new HgUpdateConfigurationSettings());
    UpdatedFiles updatedFiles = UpdatedFiles.create();
    EmptyProgressIndicator indicator = new EmptyProgressIndicator();
    ArrayList<VcsException> nonFatalWarnings = new ArrayList<>();
    updater.update(updatedFiles, indicator, nonFatalWarnings);
    return nonFatalWarnings;
}
Also used : HgUpdateConfigurationSettings(org.zmlx.hg4idea.provider.update.HgUpdateConfigurationSettings) EmptyProgressIndicator(com.intellij.openapi.progress.EmptyProgressIndicator) HgRegularUpdater(org.zmlx.hg4idea.provider.update.HgRegularUpdater) VcsException(com.intellij.openapi.vcs.VcsException) ArrayList(java.util.ArrayList) UpdatedFiles(com.intellij.openapi.vcs.update.UpdatedFiles)

Aggregations

EmptyProgressIndicator (com.intellij.openapi.progress.EmptyProgressIndicator)1 VcsException (com.intellij.openapi.vcs.VcsException)1 UpdatedFiles (com.intellij.openapi.vcs.update.UpdatedFiles)1 ArrayList (java.util.ArrayList)1 HgRegularUpdater (org.zmlx.hg4idea.provider.update.HgRegularUpdater)1 HgUpdateConfigurationSettings (org.zmlx.hg4idea.provider.update.HgUpdateConfigurationSettings)1