Search in sources :

Example 1 with HgIdentifyCommand

use of org.zmlx.hg4idea.command.HgIdentifyCommand in project intellij-community by JetBrains.

the class HgCloneDialog method test.

@NotNull
@Override
protected TestResult test(@NotNull final String url) {
    HgIdentifyCommand identifyCommand = new HgIdentifyCommand(myProject);
    identifyCommand.setSource(url);
    HgCommandResult result = identifyCommand.execute(ModalityState.stateForComponent(getRootPane()));
    return result != null && result.getExitValue() == 0 ? TestResult.SUCCESS : new TestResult(result.getRawError());
}
Also used : HgCommandResult(org.zmlx.hg4idea.execution.HgCommandResult) HgIdentifyCommand(org.zmlx.hg4idea.command.HgIdentifyCommand) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 HgIdentifyCommand (org.zmlx.hg4idea.command.HgIdentifyCommand)1 HgCommandResult (org.zmlx.hg4idea.execution.HgCommandResult)1