Subject : OK but but no envir variable work...


Well chapter 3 of the book version Management they speak over archiving
a existing directory structure.
So in my .bash_profile I set the following :
<snip>
CVSROOT=/home/cvsroot
export CVSROOT
</snip>

Cases are correct I tripple check them 
+ chown -Rv to my user, 
as well as chmod to 777 for the first test. 

In the mean, I checked the CVSROOT  directory structure on my machine &
in the book. I have :

/home/cvsroot
        CVSROOT # directory content displayed at the end 
        Python  # I created it & 

I then moved to ~/prog/Python & applied the followin' call :
cvs import -m "Test for Python" Python Private start

but here's what I got : 
<snip>
  [tsmets@Calvin Python]$ cvs import -m "Test Python"  Python Private
start
  cvs import: No CVSROOT specified!  Please use the `-d' option
  cvs [import aborted]: or set the CVSROOT environment variable.
  [tsmets@Calvin Python]$      
</snip>

but then if I do a 
<snip>
  [tsmets@Calvin Python]$ echo ${CVSROOT}
  /home/cvsroot
  [tsmets@Calvin Python]$  
</snip>


Hopefully,
<snip>
[tsmets@Calvin Python]$ cvs -d /home/cvsroot import -m "Test Python" 
Python Private start
N Python/Log
N Python/.signature
cvs import: Importing /home/cvsroot/Python/dbg
cvs import: Importing /home/cvsroot/Python/Tst
N Python/Tst/Brian.py
N Python/Tst/Brian.pyc
N Python/Tst/Test.txt
N Python/Tst/TestQT.py           
                ...
</snip>


Someone got an idea ?

Thomas,





David Dunbar wrote:
> 
> Thomas SMETS wrote:
> >
> > Well I've a basic CVS usage proble ...
> > I set a system variable in my profile such as :
> >
> > # because /home is mounted on an almost empty disk
> > export CVSROOT=/home/cvsroot
> >
> > (Bash shell).
> > Now If I'm _ci_(ing) a file it only creates the "archives"in the current
> > directory... so /home/<user-id>/prog/python/<filename>.py should check
> > as /home/cvsroot/<filename>.py,v but it does as
> > /home/<user-id>/prog/python/<filename>.py,v
> >
> > HOW could I changed that behavior to be has I expected ?
> 
> It sounds like you messed up the path relative to CVSROOT when you
> imported the code to start with. Look at the Repository file in the CVS
> directory where you have the code checked out. You may have to start
> over.
> 
> I don't think you want the repository set up the way you describe unless
> you have very few files. If everything goes into /home/cvsroot then
> Makefiles, for example, will get stomped whenever you commit a different
> program. Try:
> 
> /home/cvsroot/CVSROOT       for cvs administrative files
> /home/cvsroot/src/dir1      for a group of related programs
> /home/cvsroot/src/dir1/mod1 for a module in the group
> .
> .
> .
> 
> David
> --
> David M. Dunbar <[EMAIL PROTECTED]>
> Good health is merely the slowest possible rate at which one can die.


CVSROOT directory contains :
[tsmets@Calvin CVSROOT]$ ls -la
total 48
drwxrwxrwt   2 tsmets   tsmets       1024 Aug 11 02:46 ./
-rwxrwxrwt   1 tsmets   tsmets        493 Jul 21 19:08 .#checkoutlist*
-rwxrwxrwt   1 tsmets   tsmets        760 Jul 21 19:08 .#commitinfo*
-rwxrwxrwt   1 tsmets   tsmets        364 Jul 21 19:08 .#config*
-rwxrwxrwt   1 tsmets   tsmets        753 Jul 21 19:08 .#cvswrappers*
-rwxrwxrwt   1 tsmets   tsmets       1025 Jul 21 19:08 .#editinfo*
-rwxrwxrwt   1 tsmets   tsmets       1141 Jul 21 19:08 .#loginfo*
-rwxrwxrwt   1 tsmets   tsmets       1151 Jul 21 19:08 .#modules*
-rwxrwxrwt   1 tsmets   tsmets        564 Jul 21 19:08 .#notify*
-rwxrwxrwt   1 tsmets   tsmets        649 Jul 21 19:08 .#rcsinfo*
-rwxrwxrwt   1 tsmets   tsmets        879 Jul 21 19:08 .#taginfo*
-rwxrwxrwt   1 tsmets   tsmets       1026 Jul 21 19:08 .#verifymsg*
drwxrwxrwt   4 tsmets   tsmets       1024 Aug 11 03:05 ../
-rwxrwxrwt   1 tsmets   tsmets        493 Aug 11 02:46 checkoutlist*
-rwxrwxrwt   1 tsmets   tsmets        695 Jul 21 19:02 checkoutlist,v*
-rwxrwxrwt   1 tsmets   tsmets        760 Aug 11 02:46 commitinfo*
-rwxrwxrwt   1 tsmets   tsmets        962 Jul 21 19:02 commitinfo,v*
-rwxrwxrwt   1 tsmets   tsmets        364 Aug 11 02:46 config*
-rwxrwxrwt   1 tsmets   tsmets        566 Jul 21 19:02 config,v*
-rwxrwxrwt   1 tsmets   tsmets        753 Aug 11 02:46 cvswrappers*
-rwxrwxrwt   1 tsmets   tsmets        955 Jul 21 19:02 cvswrappers,v*
-rwxrwxrwt   1 tsmets   tsmets       1025 Aug 11 02:46 editinfo*
-rwxrwxrwt   1 tsmets   tsmets       1227 Jul 21 19:02 editinfo,v*
-rwxrwxrwt   1 tsmets   tsmets          0 Jul 21 19:02 history*
-rwxrwxrwt   1 tsmets   tsmets       1141 Aug 11 02:46 loginfo*
-rwxrwxrwt   1 tsmets   tsmets       1343 Jul 21 19:02 loginfo,v*
-rwxrwxrwt   1 tsmets   tsmets       1151 Aug 11 02:46 modules*
-rwxrwxrwt   1 tsmets   tsmets       1353 Jul 21 19:02 modules,v*
-rwxrwxrwt   1 tsmets   tsmets        564 Aug 11 02:46 notify*
-rwxrwxrwt   1 tsmets   tsmets        766 Jul 21 19:02 notify,v*
-rwxrwxrwt   1 tsmets   tsmets        649 Aug 11 02:46 rcsinfo*
-rwxrwxrwt   1 tsmets   tsmets        851 Jul 21 19:02 rcsinfo,v*
-rwxrwxrwt   1 tsmets   tsmets        879 Aug 11 02:46 taginfo*
-rwxrwxrwt   1 tsmets   tsmets       1081 Jul 21 19:02 taginfo,v*
-rwxrwxrwt   1 tsmets   tsmets       1026 Aug 11 02:46 verifymsg*
-rwxrwxrwt   1 tsmets   tsmets       1228 Jul 21 19:02 verifymsg,v*  

[tsmets@Calvin CVSROOT]$ pwd
/home/cvsroot/CVSROOT

Reply via email to