Jump to: navigation, search

Work with EFIT CVS

  1. Setup
    • setenv CVSROOT /c/efit/CVS
      add this line in your .login if used frequently
    • create file .cvsrc in your home directory including at least one line
      checkout -kkv
  2. Remote access
    • cvs -d :pserver:username@hydra.gat.com:/c/efit/CVS login
      Need to specify -d
      :pserver:username@hydra.gat.com:/c/efit/CVS as repository for all cvs commands, eg
      cvs -d :pserver:username@hydra.gat.com:/c/efit/CVS checkout
  3. Checkout
    • create a directory, cd to that directory
    • cvs checkout efitcore efitbuild efitex
    • cd efitbuild
    • make
  4. Update to bring work tree sync with repository
    • cvs -n update
      displays files which are not up-to-date without acturally changing the working directory .
    • cvs update
      updates the working directory recursively with any change made to the repository by others
  5. Check codes back in
    • cvs commit [options] [files...]
      • cvs commit
        check all files being changed back into the repository. this is done recursively.
      • options
      • -r revision - specify a new revision number, e.g. -r 3.0
      • -m message - use message as log message, instead of invoking an editor
      • -l - run only in current working directory
      • ...
  6. Other useful commands
    • cvs diff [options] [files...]
      • -D date
      • -r revision/tag
        • + 0 -r options, working file will be compared with the revision it based on
        • + 1 -r options, that revison will be compared with working file
        • + 2 -r options, those two revisions will be compared.