# cvs-switchroot - change repository or tag in a cvs working copy - man(1) - [phpMan]

[_CVS-SWITCHROOT_(1)](https://www.chedong.com/phpMan.php/man/CVS-SWITCHROOT/1/markdown)                      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  argu‐
       ment _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**.

Debian                                      June 10, 2011                          [_CVS-SWITCHROOT_(1)](https://www.chedong.com/phpMan.php/man/CVS-SWITCHROOT/1/markdown)
