[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVSROOT not used

From: Steve Sapovits
Subject: Re: CVSROOT not used
Date: Wed, 17 May 2006 02:21:20 -0400
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Mark D. Baushke wrote:

What does this command tell you?

  cat CVS/Root

It should be a copy of your $CVSROOT as specified when you checked out
the original tree.

This is it.  I had started down that path after my last
post but you gave me better direction.  The issue is that
I checked out as another user.  cvs diff seems to try
running using $CVSROOT but against the CVS/Root user on
the remote server.  My rsh permissions were not set right
for that one.

To clarify, there are 3 users here:

(1) A shared user the code was checked out as;
(2) My user on one system;
(3) My (different) user on another system.

I was set up permission-wise to go between my two users but
not between one of my users and the shared user the code was
checked out as.  cvs diff appears to run as the CVS/Root user
at some level.

What first clued me in here was trying a checkout somewhere
else.  That worked -- it was only commands like cvs diff that
run against the checked out code that weren't working.

My follow-up question here is:  If I 'cvs commit' from that
same checked out code path, as me and not as the user who
checked it out, will the check-in be tagged with my user ID?

Also: All the users in this scenario are in the same UNIX group.

You could also use

    CVSROOT=:ext:address@hidden/cvsroot cvs -t -t -t diff

and see what kind of output you get.


  cvs -d `cat CVS/Root` diff

work for you?

All of these seem to indicate that CVSROOT, while set, is
not being looked at.  I know, however, that as another user
I log in as it is being used because I've had to change it.
The difference seems to be that the user where it doesn't
work is the only one running commands on the server as a
different user.  But that all works if I specify CVSROOT
explicitly via '-d' options.  I'm thinking maybe there could
also be some setting that overrides CVSROOT but not '-d' --
like something in a preferences file or something?

The precedence is
    1) Use the command-line -d cvsroot if it was given.
    2) Any command-line switches in $HOME/.cvsrc on the 'cvs' keyword.
    3) Use the CVS/Root value as the cvsroot if available
    4) Use the CVSROOT environment variable.

This is for CVS, not CVSNT. You may wish to provide the output of

  cvs -t version

if you want more help.

        -- Mark
Version: GnuPG v1.4.3 (FreeBSD)


Steve Sapovits  address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]