cvs-getting-started

Getting started with CVS

export CVS_RSH=ssh

cvs -d:pserver:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor login

# old # cvs -d:ext:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor import -m "Initial import." lisp vendor start

I find this one a bit confusing; the directory you're in at the time is the one that gets imported, not the directory under it that you name in the import command.

cvs -d:ext:jcg_sturdy@emacs-versor.cvs.sourceforge.net:/cvsroot/emacs-versor co emacs-versor

May later need something like

cvs -z3 -d:pserver:anonymous@cvs.emacs-versor.sourceforge.net:/cvsroot/emacs-versor co emacs-versor

This seems to work OK:

cd /home/john/open-projects/emacs-versor cvs -d:ext:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor checkout lisp

then had trouble with

cvs -d:ext:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor add lisp/LICENSE.TXT

and with

cvs -d:ext:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor diff lisp/versor.el

as it said "ssh: connect to host cvs.sf.net port 22: Connection refused"

However, retrying the checkout command (above), exactly as before, did just this also

That seemed to be a server problem; trying again later, I then got

cvs [add aborted]: there is no version here; do 'cvs checkout' first

It appears you have to do the add from the directory containing the file.

cvs -d:ext:jcg_sturdy@cvs.sf.net:/cvsroot/emacs-versor commit -m "New file, containing GPL" LICENSE.TXT

is what actually worked, without throwing me into vi

import seems to be the way to create directories, but I have also seen it add things that I didn't expect. Perhaps I ran it from the wrong place.