def _select_server(self, current_path=None):
        v = sublime.active_window().active_view()
        repo_root = find_repo_root(current_path or v.file_name())
        if not repo_root:
            raise NoRepositoryFound()
        if not repo_root in self.__dict__:
            server = self._start_server(repo_root)
            self.__dict__[repo_root] = server
        return self.__dict__[repo_root]
Finds an existing server for the given path. If none is
dataset/ETHPy150Open guillermooo/Mercurial/shglib/utils.py/HgServers._select_server