cvs -d :pserver:userName@cvsserver:/repository login
Logging in to :pserver:userName@cvsserver:2401/repository
CVS password
After login, I didn't do anything and logout. The following msg come up:
cvs logout: No CVSROOT specified! Please use the `-d' option
cvs [logout aborted]: or set the CVSROOT environment variable.
Same msg comes up when I do import files.
cvs import: No CVSROOT specified! Please use the `-d' option
cvs [import aborted]: or set the CVSROOT environment variable.
What did I do? Why this happen? How to solve it? Help!
Monica
> I imported some files into repository and checked out file for updating. It
> was all ok last week. Today, when I login I typed:
>
> cvs -d :pserver:userName@cvsserver:/repository login
> Logging in to :pserver:userName@cvsserver:2401/repository
> CVS password
>
> After login, I didn't do anything and logout. The following msg come up:
>
> cvs logout: No CVSROOT specified! Please use the `-d' option
> cvs [logout aborted]: or set the CVSROOT environment variable.
You still need a CVSROOT environment variable or -d option, even though
you logged in. Logging in just means that a weak security token is
deposited into a file in your home directory, which allows you to
interact with the repository.
The key fact here is that you can log innto more than one repository at
a time; the file can contain more than one such token! There is no
concept of a ``current CVS repository you are logged into''.
The CVSROOT environment variable, the -d option, or, for many commands,
the surrounding sandbox (checked out copy) determine what repository
you interact with.
The cvs logout command too has to know *which* repository you want to
log out from.
>cvs -d :pserver:userName@cvsserver:/repository login
>Logging in to :pserver:userName@cvsserver:2401/repository
>CVS password
>After login, I didn't do anything and logout. The following msg come up:
>cvs logout: No CVSROOT specified! Please use the `-d' option
>cvs [logout aborted]: or set the CVSROOT environment variable.
>Same msg comes up when I do import files.
>cvs import: No CVSROOT specified! Please use the `-d' option
>cvs [import aborted]: or set the CVSROOT environment variable.
That's normal. The root is taken from the "-d" option or, if none is
given, from the CVS/Root file (relative to your working directory) or,
if none, from the CVSROOT environment variable. When you run cvs from
the checked-out sandbox it sees the CVS/Root and uses that. As soon as
you step outside, you need a CVSROOT variable or a "-d" option, just
like it says.
----- Original Message -----
From: "Kaz Kylheku" <k...@ashi.footprints.net>
To: "Monica Li" <l...@odshp.com>
Cc: <info...@gnu.org>
Sent: Monday, February 03, 2003 4:01 PM
Subject: Re: use '-d' option
> On Mon, 3 Feb 2003, Monica Li wrote:
>
> > I imported some files into repository and checked out file for updating.
It
> > was all ok last week. Today, when I login I typed:
> >
> > cvs -d :pserver:userName@cvsserver:/repository login
> > Logging in to :pserver:userName@cvsserver:2401/repository
> > CVS password
> >
> > After login, I didn't do anything and logout. The following msg come up:
> >
> > cvs logout: No CVSROOT specified! Please use the `-d' option
> > cvs [logout aborted]: or set the CVSROOT environment variable.
>
> You still need a CVSROOT environment variable or -d option, even though
> you logged in. Logging in just means that a weak security token is
> deposited into a file in your home directory, which allows you to
> interact with the repository.
>
> The key fact here is that you can log innto more than one repository at
> a time; the file can contain more than one such token! There is no
> concept of a ``current CVS repository you are logged into''.
>
> The CVSROOT environment variable, the -d option, or, for many commands,
> the surrounding sandbox (checked out copy) determine what repository
> you interact with.
>
> The cvs logout command too has to know *which* repository you want to
> log out from.
>
>
>
> _______________________________________________
> Info-cvs mailing list
> Info...@gnu.org
> http://mail.gnu.org/mailman/listinfo/info-cvs