[Top][All Lists]

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

Re: directory not relative within the depository

From: Eric Siegerman
Subject: Re: directory not relative within the depository
Date: Tue, 1 Apr 2003 16:52:39 -0500
User-agent: Mutt/1.2.5i

On Tue, Apr 01, 2003 at 02:26:20PM -0700, jdaues wrote:
> Newbie error:
> Trying to create a project from source code
> Source code is on cdrom in /mnt/cdrom/Foo/
> CVSROOT is set to /usr/local/cvs-repository
> Created repository with:
> cvs -d /usr/local/cvs-repository init

Ok so far.

> Create /usr/local/cvs-repository/Foo
> Command is (after 3.1.1. in cederqvist):
> cvs import -m "Imported sources" /mnt/cdrom/Foo MyCompany start

The first argument isn't where to find the input files, but where
within the repository to put the results.  It must be a relative
pathname, and is interpreted relative to CVSROOT.  The source for
"cvs import" is always the current directory.

So what you wanted was something like:
        cd /mnt/cdrom/Foo
        cvs import -m "Imported sources" Foo MyCompany start

That argument can have more than one level.  You could say:
        cvs import -m "Imported sources" MyProject/something/Foo MyCompany start
if you wanted the stuff to end up deeper inside the repo.  (CVS
will create the intermediate directories if necessary.)


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
A distributed system is one on which I cannot get any work done,
because a machine I have never heard of has crashed.
        - Leslie Lamport

reply via email to

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