Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use '-d' option

1,550 views
Skip to first unread message

Monica Li

unread,
Feb 3, 2003, 6:37:33 PM2/3/03
to info...@gnu.org
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.

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

Kaz Kylheku

unread,
Feb 3, 2003, 7:01:16 PM2/3/03
to Monica Li, info...@gnu.org
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.

Pierre Asselin

unread,
Feb 3, 2003, 7:25:20 PM2/3/03
to

>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.

Jim

unread,
Feb 3, 2003, 9:43:59 PM2/3/03
to info...@gnu.org
A CVSROOT is defaulted if you're in a tree which you have checked out - the
info comes from CVS/Root. If you're outside of any CVS tracked directory
you need to specify the root with -d and/or CVSROOT environement variable.

----- 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

0 new messages