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