private static void executePull(final Project project, final HgRepository hgRepository, final String source) {
    final HgPullCommand command = new HgPullCommand(project, hgRepository.getRoot());
    command.setSource(source);
    command.executeInCurrentThread();
    hgRepository.update();
  }
private static void executePull(final Project project, final HgRepository hgRepository, final String source)