To use CVS properly, you should (must) have an SSH agent with your SSH key, and have your SSH public key in your .ssh/authorized_keys file on our CVS server. Test using ssh cvs.bcl.hamilton.ie pwd. No password should be needed!
The online text Open Source Development With CVS is an excellent reference.
If you didn't edit it yourself, using a text editor, it doesn't belong in CVS.
rm -rf meg export CVS_RSH=ssh cvs -d :ext:cvs.bcl.hamilton.ie:/home/cvs checkout meg
cvs commit -m 'add --help switch' foo.c
cvs update foo.c
rm foo.cc cvs remove foo.cc cvs commit -m 'contents moved to file bar.cc' foo.ccNote that the file's past continues to exist in the repository, so you can fetch old versions, examine its log, etc.
cvs diff file.ccExamine history of a file. Works even if file is deleted in current version.
cvs log file.cc | moreDifference between specified versions.
cvs diff -r1.23 -r1.24 file.ccRequest particular version from repository. Works even if file is deleted in current version.
cvs update -r1.23 file.ccRequest head version from repository.
cvs update -A file.cc
rm file.cc cvs update file.cc
cvs tag handin-28-Jan-2001 foo.c bar.c foo.h bar.h Makefile
cvs watch add foo.cc cvs watch addNote that you probably need to create a file ~/.forward containing your preferred email address on the CVS server. Eg:
echo my_email@address.ie | ssh cvs.bcl.hamilton.ie "cat > ~/.forward"
M-x cvs-updateIn the resulting *cvs* buffer go C-h m for documentation on available commands.
Important *cvs* buffer commands:
a add c commit, then C-c C-c in the resulting log entry buffer d d diff against repositoryYou can also use version control commands while in the buffer with the file itself.
C-x v = diff against repository C-x v l show log of change history C-x v v commit changes, then C-c C-c in resulting log entry buffer
Fortunately, according to an ssh2-OpenSSH FAQ, there is a simple command to convert:
ssh-keygen -i -f ssh2_key.pub > ~/.ssh/openssh_key.pub