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 -T option, 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-switchroot depends on mksh.

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 πŸŽ€βœ¨