@Override
  public @Nullable HgTarget getDefaultTarget(@NotNull HgRepository repository) {
    String defaultPushPath = repository.getRepositoryConfig().getDefaultPushPath();
    return defaultPushPath == null ? null : new HgTarget(defaultPushPath, Objects.requireNonNull(repository.getCurrentBranchName()));
  }
@Override
  public @Nullable HgTarget getDefaultTarget(@NotNull HgRepository repository)