Stupid CVS tricks

I’m doing coding on my current project, and am getting acquainted with CVS from a developer’s point of view. So, I had my first CVS mishap this morning, where I had to pull out an old version of a file and make it current. Sticky tags, of course, get in the way. Here’s a set of instructions on how to make an old revision the current one.

Basically:

  • Remove a version: cvs admin -o1.3 test (don’t have the option to merge changes)
  • Check out old version: cvs update -r1.2 test
  • Revert to the most recent version: cvs update -A test
  • Making the old version the most recent:

    mv test test.old
    cvs update -A test
    mv test.old test
    cvs commit -m “reverting to old” test

  • Since I’m making a CVS tricks post, here’s some bits of old documentation I had scattered around:

  • importing a directory tree into CVS
  • In the directory above the tree you want to import, run: “cvs import ModuleName vendor_tag release-tag” where ModuleName is the module you want to check into, etc.

  • Master documentation: found at CVSHome.org
  • A primer on tags and branches: found at http://www.psc.edu/~semke/cvs_branches.html
  • Comments are closed.