import pathlib
import shutil


def repository(tmp_path: pathlib.Path, sessionrepository: pathlib.Path) -> pathlib.Path:
    """Fixture for a Mercurial repository."""
    path = tmp_path / "repository"
    shutil.copytree(sessionrepository, path)

    return path