Question about AnonCVS Instructions

2007-11-27 Thread new_guy
What is the difference between these two cvs commands? I know what the first
one does... checks out the source code to stable and assumes a CVSROOT is
around... but is the second command not the same? I understand all the
options... except for 'get'... how is that different from checkout?

cvs checkout -P -rOPENBSD_4_2 src
cvs -qd [EMAIL PROTECTED]:/cvs get -rOPENBSD_4_2 -P src

Also, if one has the source tar files, neither of those commands are needed,
right? Won't this alone do (assuming the tar files have been extracted to
the appropriate areas):

# Do this for /usr/src /usr/ports and /usr/src/xenocara
cvs -q up -rOPENBSD_4_2 -Pd

OpenBSD docs are rather good, but IMO, http://openbsd.org/anoncvs.html;
could be simplified somewhat.
-- 
View this message in context: 
http://www.nabble.com/Question-about-AnonCVS-Instructions-tf4886332.html#a13985918
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Question about AnonCVS Instructions

2007-11-27 Thread Nick Holland

new_guy wrote:

What is the difference between these two cvs commands? I know what the first
one does... checks out the source code to stable and assumes a CVSROOT is
around... but is the second command not the same? I understand all the
options... except for 'get'... how is that different from checkout?


CVS has a lot of redundant commands.  See man cvs:
   checkout [options] modules...
  Requires: repository.
  Changes: working directory.
  Synonyms: co, get



cvs checkout -P -rOPENBSD_4_2 src
cvs -qd [EMAIL PROTECTED]:/cvs get -rOPENBSD_4_2 -P src


and since the second one does NOT assume anything about CVSROOT, it is 
potentially very different.


the -q is of marginal value in a checkout, but in a up, it eliminates 
massive amounts of chatter.  On the other hand, if you have a slow link, 
maybe you want to know that it is still working.



Also, if one has the source tar files, neither of those commands are needed,
right? Won't this alone do (assuming the tar files have been extracted to
the appropriate areas):

# Do this for /usr/src /usr/ports and /usr/src/xenocara
cvs -q up -rOPENBSD_4_2 -Pd


you really want a -d in there.  Pretty much mandatory if you are using 
the source tar files.



OpenBSD docs are rather good, but IMO, http://openbsd.org/anoncvs.html;
could be simplified somewhat.


try http://www.openbsd.org/faq/faq5.html instead.  (yeah, there's some 
redundancy that should be eliminated).


Nick.