[hg] rename hg init execution

This commit is contained in:
Nadya Zabrodina
2016-03-09 14:29:23 +03:00
parent 0f36b49c07
commit 153df9b9e9
3 changed files with 3 additions and 3 deletions
@@ -106,7 +106,7 @@ public class HgInit extends DumbAwareAction {
}
private void createRepositoryAsynchronously(final VirtualFile selectedRoot, final VirtualFile mapRoot) {
new HgInitCommand(myProject).execute(selectedRoot, new HgCommandResultHandler() {
new HgInitCommand(myProject).executeAsynchronously(selectedRoot, new HgCommandResultHandler() {
@Override
public void process(@Nullable HgCommandResult result) {
if (!HgErrorUtil.hasErrorsInCommandExecution(result)) {
@@ -22,7 +22,7 @@ public class HgInitCommand {
myProject = project;
}
public void execute(@NotNull VirtualFile repositoryRoot,final HgCommandResultHandler resultHandler) {
public void executeAsynchronously(@NotNull VirtualFile repositoryRoot, final HgCommandResultHandler resultHandler) {
final List<String> args = new ArrayList<String>(1);
args.add(repositoryRoot.getPath());
final HgCommandExecutor executor = new HgCommandExecutor(myProject, repositoryRoot.getPath());
@@ -37,7 +37,7 @@ public class HgIntegrationEnabler extends VcsIntegrationEnabler<HgVcs> {
@Override
protected boolean initOrNotifyError(@NotNull final VirtualFile projectDir) {
final boolean[] success = new boolean[1];
new HgInitCommand(myProject).execute(projectDir, new HgCommandResultHandler() {
new HgInitCommand(myProject).executeAsynchronously(projectDir, new HgCommandResultHandler() {
@Override
public void process(@Nullable HgCommandResult result) {
VcsNotifier notification = VcsNotifier.getInstance(myProject);