def __init__()

in fluent/migrate/repo_client.py [0:0]


    def __init__(self, root: str):
        self.root = root
        if isdir(join(root, ".hg")):
            self.hgclient = hglib.open(root, "utf-8")
        else:
            self.hgclient = None
            try:
                stdout = git(self.root, "rev-parse", "--is-inside-work-tree")
            except Exception:
                stdout = ""
            if stdout != "true\n":
                raise Exception(f"Unsupported repository: {root}")