void (@NotNull final HgRepository repository, @NotNull Hash commit) { final Project project = repository.getProject(); final VirtualFile root = repository.getRoot(); FileDocumentManager.getInstance().saveAllDocuments(); HgUpdateCommand.updateRepoTo(project, root, commit.asString(), null); }