Re: directory not relative within the depository
(CVS will create the intermediate directories if necessary.) So, to go into more detail, the directory tree looks like: Foo package1Dir foo1.java foo2.java package2Dir foo3.java foo4.java package3Dir ..and so on This structure will be preserved when importing? (I was hoping, but hadn't really thought about it before) ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: directory not relative within the depository
On Wed, Apr 02, 2003 at 07:47:22AM -0700, jda wrote: This structure will be preserved when importing? Yes. To edit your example slightly, you're starting with a newly-inited repo in /usr/local/cvs-repository, and project source on a CD: /mnt/cdrom/Foo/ package1Dir/ foo1.java foo2.java package2Dir/ foo3.java foo4.java The (variant) commands I gave yesterday: cd /mnt/cdrom/Foo cvs import -m Imported sources MyProject/something/Foo MyCompany start will give you this in the repo: /usr/local/cvs-repository/ CVSROOT/ ... MyProject/ something/ Foo/ package1Dir/ foo1.java,v foo2.java,v package2Dir/ foo3.java,v foo4.java,v -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / 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 ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
directory not relative within the depository
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 Create /usr/local/cvs-repository/Foo Command is (after 3.1.1. in cederqvist): cvs import -m Imported sources /mnt/cdrom/Foo MyCompany start Error is: cvs [import aborted]: directory /mnt/cdrom/Foo not relative within the repository What am I doing wrong? (Google search reveals little) ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: directory not relative within the depository
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.[EMAIL PROTECTED] | | / 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 ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs