[comp.unix.misc] cvs-problems

ulli@cadlab.de (Ulli Blancke) (05/14/91)

We have problems retrieving modules from cvs. To give you an exact picture
we discribe here what we have done, but most interesting should be the
end ....

Having untarred the files cvs-1.0.tar, (sources mostly from 89/11/19)
rcs-5.5.tar under $HOME/rcs 

changing in $HOME/rcs/cvs/Makefile:
	DESTDIR=        /sun/da/sb/rcs/cvs/bin

changing MANDIR in $HOME/rcs/cvs/man/Makefile:
	MANDIR=         /sun/da/sb/rcs/cvs/man/man${MANSEC}

changing in $HOME/rcs/cvs/src/cvs.h
	#define RCSBIN_DFLT     "/sun/da/sb/rcs/rcs/src" 

starting in $HOME/rcs/cvs
	$ make depend
	$ make
	$ mkdir bin man/manl 	# should this in the Makefile??
	$ make install

creating repository directory
	$ mkdir ~/CVS ~/CVS/CVSROOT.adm
	$ cd ~/CVS/CVSROOT.adm
	$ cp ~/rcs/cvs/examples/* .
edit file modules to contain the line
	ex	ex a b
	$ ci -m'Initial loginfo file' loginfo
	$ ci -m'Initial modules file' module
	$ mkmodules /sun/da/sb/CVS/CVSROOT.adm
	$ setenv CVSROOT /sun/da/sb/CVS
	$ setenv RCSBIN /sun/da/sb/rcs/rcs/src
	$ set path        = ( $path \
			/sun/da/sb/rcs/rcs/src \
			/sun/da/sb/rcs/cvs/bin )
	$ mkdir ~/ex; cd ~/ex		# this is our little example
	$ echo aa > a; echo bb > b
	$ mkdir $CVSROOT/ex

adapting ~/rcs/cvs/bin/checkin to my environment:
	changing lines 41/42 to:
		set cvsbin = /sun/da/sb/rcs/cvs/bin
		set rcsbin = /sun/da/sb/rcs/rcs/src

now our first trial:
	$ checkin -m 'first cvs trying' ex EX EX1
results in:
	WARNING: Creating new file ex/a
	WARNING: Creating new file ex/b

trying to retrieve the information DOES NOT SUCCEED!!!!!!
	$ cd ~/newdir
	$ cvs co ex
	cvs: nothing known about a
	cvs: nothing known about b
	cvs: failed; correct the above errors first

So now, what are we doing wrong? Any help will be appreciated,
					Ulli Blancke
					Siegfried Bublitz

PS: Errors on the manpage for cvs
	page 9, line 6: the files are from $CVSROOT/bin, not $CVSROOT/bin/awk



------------------- >		Cadlab          <-----------------------
Ulrich Blancke			Bahnhofstr. 32
ulli@cadlab.cadlab.de		4790 Paderborn
Phone: +49 (5251)-284113 	( Germany )


--
------------------- >		Cadlab          <-----------------------
Ulrich Blancke			Bahnhofstr. 32
ulli@cadlab.cadlab.de		4790 Paderborn
Phone: +49 (5251)-284113 	( Germany )

jms@unix386.Convergent.COM (John Sully) (05/15/91)

ulli@cadlab.de (Ulli Blancke) writes:



>We have problems retrieving modules from cvs. To give you an exact picture
>we discribe here what we have done, but most interesting should be the
>end ....

[...]

>edit file modules to contain the line
>	ex	ex a b

[...]

>trying to retrieve the information DOES NOT SUCCEED!!!!!!
>	$ cd ~/newdir
>	$ cvs co ex
>	cvs: nothing known about a
>	cvs: nothing known about b
>	cvs: failed; correct the above errors first

It looks like you did everything right, the problem may be that your module
name and the name of the directory are the same.  I haven't tried this sort
of setup here, preferring instead to use the alias mechanism.  Perhaps trying
something like:

	foo	ex a b

in your modules file will work a little bit better.  After this try:

	cvs co foo

and it should create a directory "foo" in your current directory.  If you 
don't have the "ex" entry in your modules file it will also work as expected.

The modules mechanism does have it's bugs, mostly having to do with nested
aliases, but they can be worked around without too much trouble.

BTW: I'm posting followups to comp.sources.bugs, since that seems to be a
better place for this discussion.

John M. Sully                      
Unisys Corporation                 
2700 N. First St.                  
San Jose, CA 95150                 
                                   
Phone : (408) 435-3129             
E-Mail: jms@unix386.convergent.com 

ulli@cadlab.de (Ulli Blancke) (05/17/91)

In article <7589@unix386.Convergent.COM> jms@unix386.Convergent.COM (John Sully) writes:

   Xref: pbinfo comp.unix.misc:1101 comp.sources.bugs:2460
   Path: pbinfo!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!apple!voder!pyramid!ctnews!unix386!jms
   From: jms@unix386.Convergent.COM (John Sully)
   Newsgroups: comp.unix.misc,comp.sources.bugs
   Date: 14 May 91 17:43:25 GMT
   References: <ULLI.91May14125345@elladan.cadlab.de>
   Distribution: comp.unix.misc
   Organization: Unisys/Convergent, San Jose, CA
   Lines: 49

   ulli@cadlab.de (Ulli Blancke) writes:



   >We have problems retrieving modules from cvs. To give you an exact picture
   >we discribe here what we have done, but most interesting should be the
   >end ....

   [...]

   >edit file modules to contain the line
   >	ex	ex a b

   [...]

   >trying to retrieve the information DOES NOT SUCCEED!!!!!!
   >	$ cd ~/newdir
   >	$ cvs co ex
   >	cvs: nothing known about a
   >	cvs: nothing known about b
   >	cvs: failed; correct the above errors first

   It looks like you did everything right, the problem may be that your module
   name and the name of the directory are the same.  I haven't tried this sort
   of setup here, preferring instead to use the alias mechanism.  Perhaps trying
   something like:

	   foo	ex a b

   in your modules file will work a little bit better.  After this try:

	   cvs co foo

   and it should create a directory "foo" in your current directory.  If you 
   don't have the "ex" entry in your modules file it will also work as expected.

   The modules mechanism does have it's bugs, mostly having to do with nested
   aliases, but they can be worked around without too much trouble.

   BTW: I'm posting followups to comp.sources.bugs, since that seems to be a
   better place for this discussion.

   John M. Sully                      
   Unisys Corporation                 
   2700 N. First St.                  
   San Jose, CA 95150                 

   Phone : (408) 435-3129             
   E-Mail: jms@unix386.convergent.com 




Thank you for all answers. My mistake was that I used version 1.0 of
cvs with rcs5.5. As I heard, I have to use cvs1.2. Actually I get this
version from a server here in europa. I tested this version and it
work. 

Thanks you 

--
------------------- >		Cadlab          <-----------------------
Ulrich Blancke			Bahnhofstr. 32
ulli@cadlab.cadlab.de		4790 Paderborn
Phone: +49 (5251)-284113 	( Germany )