{
    "mode": "man",
    "parameter": "cvs-switchroot",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/cvs-switchroot/1/json",
    "generated": "2026-06-28T02:40:44Z",
    "synopsis": "cvs-switchroot [-T] newroot [file ...]\ncvs-switchroot [-T] - srcpath [file ...]",
    "sections": {
        "NAME": {
            "content": "cvs-switchroot — change repository or tag in a cvs working copy\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cvs-switchroot [-T] newroot [file ...]\n\ncvs-switchroot [-T] - srcpath [file ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The cvs-switchroot utility manipulates a CVS working copy directly, modifying the information\nstored in the administrative subdirectory and saving space by hardlinking if possible.\n\nIf the -T option is given, the sticky tag is operated on, otherwise, the repository path\n(CVSROOT).\n\nThe information (Tag or Root) is set to the same as in srcpath if the first non-option argument\nnewroot is a sole dash (‘-’), the literal value newroot otherwise.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Change all Root information in the current sandbox to /cvs:\n\n$ cvs-switchroot /cvs .\n\nSet all roots in the current working directory and all its subdirectories to the Root of the\nparent directory:\n\n$ cvs-switchroot - .. .\n\nHardlink the Tag information in the current working directory, for example /usr/src, and\n/usr/ports with each other:\n\n$ cvs-switchroot -T - . . /usr/ports\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "cvs(1)\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "cvs-switchroot has existed in the MirBSD source tree since 2005.  It was added to Debian's cvs\npackage in 2011.\n",
            "subsections": []
        },
        "CAVEATS": {
            "content": "cvs-switchroot depends on mksh.\n\nBSD                              June 10, 2011                             BSD",
            "subsections": []
        }
    },
    "summary": "cvs-switchroot — change repository or tag in a cvs working copy",
    "flags": [],
    "examples": [
        "Change all Root information in the current sandbox to /cvs:",
        "$ cvs-switchroot /cvs .",
        "Set all roots in the current working directory and all its subdirectories to the Root of the",
        "parent directory:",
        "$ cvs-switchroot - .. .",
        "Hardlink the Tag information in the current working directory, for example /usr/src, and",
        "/usr/ports with each other:",
        "$ cvs-switchroot -T - . . /usr/ports"
    ],
    "see_also": [
        {
            "name": "cvs",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/cvs/1/json"
        }
    ]
}