public void createNewBranchInCurrentThread(final @NotNull String name) {
      for (final HgRepository repository : myRepositories) {
        try {
          HgCommandResult result = new HgBranchCreateCommand(myProject, repository.getRoot(), name).executeInCurrentThread();
          repository.update();
          if (HgErrorUtil.hasErrorsInCommandExecution(result)) {
            new HgCommandResultNotifier(myProject)
              .notifyError(BRANCH_CREATION_ERROR,
                           result,
                           HgBundle.message("hg4idea.branch.creation.error"),
                           HgBundle.message("hg4idea.branch.creation.error.msg", name));
          }
        }
        catch (HgCommandException exception) {
          HgErrorUtil.handleException(myProject,
                                      BRANCH_CREATION_ERROR,
                                      HgBundle.message("hg4idea.branch.cannot.create"),
                                      exception);
        }
      }
    }
public void createNewBranchInCurrentThread(final @NotNull String name)