@Override
  @CalledInAny
  public @Nullable String getCurrentBranch(@NotNull VirtualFile root) {
    HgRepository repository = getHgRepoManager(myProject).getRepositoryForRootQuick(root);
    if (repository == null) return null;
    return repository.getCurrentBranchName();
  }
@Override
  @CalledInAny
  public @Nullable String getCurrentBranch(@NotNull VirtualFile root)