void (@NotNull ProgressIndicator indicator) { if (HgUpdateCommand.updateRepoToInCurrentThread(project, repository.getRoot(), commit.asString(), false)) { new HgBranchPopupActions.HgNewBranchAction(project, Collections.singletonList(repository), repository) .createNewBranchInCurrentThread(name); } }