mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[hg] rename hg init execution
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user