# man > cvs-switchroot(1)

[CVS-SWITCHROOT(1)](https://www.chedong.com/phpMan.php/man/CVS-SWITCHROOT/1/markdown)         BSD General Commands Manual        [CVS-SWITCHROOT(1)](https://www.chedong.com/phpMan.php/man/CVS-SWITCHROOT/1/markdown)

## NAME
     **cvs-switchroot** — change repository or tag in a cvs working copy

## SYNOPSIS
     **cvs-switchroot** [**-T**] _newroot_ [_file_ _..._]

     **cvs-switchroot** [**-T**] - _srcpath_ [_file_ _..._]

## DESCRIPTION
     The **cvs-switchroot** utility manipulates a CVS working copy directly, modifying the information
     stored in the administrative subdirectory and saving space by hardlinking if possible.

     If the **-T** option is given, the sticky tag is operated on, otherwise, the repository path
     (CVSROOT).

     The information (Tag or Root) is set to the same as in _srcpath_ if the first non-option argument
     _newroot_ is a sole dash (‘-’), the literal value _newroot_ otherwise.

## 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
     [cvs(1)](https://www.chedong.com/phpMan.php/man/cvs/1/markdown)

## HISTORY
     **cvs-switchroot** has existed in the MirBSD source tree since 2005.  It was added to Debian's cvs
     package in 2011.

## CAVEATS
     **cvs-switchroot** depends on **mksh**.

BSD                              June 10, 2011                             BSD
