CVS-SWITCHROOT(1)
π CVS-SWITCHROOT(1) π
okay bestie, so this is a General Commands Manual page, section 1, for a lil utility called cvs-switchroot. she's small, she's niche, she's lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
cvs-switchroot β change repository or tag in a cvs working copy
like. she literally just swaps out your repo or your tag. that's the whole job. no cap.
πΈ SYNOPSIS πΈ
two moods. pick ur fighter π
π¦ DESCRIPTION π¦
so the cvs-switchroot utility goes and messes with a CVS working copy directly β like, hands-on, no middleman. it edits the info that lives in the administrative subdirectory, and it saves space by hardlinking if possible. efficient queen behavior fr fr β¨
now here's the vibe check on the flag:
- if you pass the
-Toption, she's operating on the sticky tag. that's the whole target. - otherwise? she's going for the repository path β aka
CVSROOT.
and here's the cute part. the information (whether that's Tag or Root) gets set to the same thing as in srcpath if the first non-option argument newroot is a sole dash (-). if it's not a dash, she just takes the literal value newroot and runs with it. periodt.
π 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 how the dash do be doing the most? that's the srcpath magic babes π
β SEE ALSO β
cvs(1)β go read her too, she's the main character of this whole franchise
π HISTORY π
cvs-switchroot has been living in the MirBSD source tree since 2005. like, she's a veteran. an OG. then in 2011 she got added to Debian's cvs package, which is when she finally got her glow-up and met a whole new audience. we love a comeback story ππ
π CAVEATS π
cvs-switchrootdepends onmksh.
that's it. that's the caveat. no mksh, no vibes. don't say I didn't warn you bestie π
Debian Β· June 10, 2011 β yeah she's an old soul but she still ate and left no crumbs π mwah, go switch some roots, ily, bye πβ¨
π¦ where this page comes from
- debian bookworm: cvs 2:1.12.13+real-28+deb12u1
- debian trixie: cvs 2:1.12.13+real-30
- ubuntu jammy: cvs 2:1.12.13+real-28
- ubuntu noble: cvs 2:1.12.13+real-30build1
- ubuntu resolute: cvs 2:1.12.13+real-31
- ubuntu stonking: cvs 2:1.12.13+real-31
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms