public static void updateRepoTo(final @NotNull Project project,
                                  final @NotNull VirtualFile repository,
                                  final @NotNull @NonNls String targetRevision,
                                  final @Nullable Runnable callInAwtLater) {
    updateRepoTo(project, repository, targetRevision, false, callInAwtLater);
  }
public static void updateRepoTo(final @NotNull Project project,
                                  final @NotNull VirtualFile repository,
                                  final @NotNull @NonNls String targetRevision,
                                  final @Nullable Runnable callInAwtLater)