[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking out a module with files from other modules
From: |
Mark E. Hamilton |
Subject: |
Re: checking out a module with files from other modules |
Date: |
Mon, 20 Aug 2007 11:10:47 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.5) Gecko/20060726 Red Hat/1.0.3-0.el4.1 SeaMonkey/1.0.3 |
eranlevi wrote:
Hi,
Thanks for the replay.
I did something a little bit different. Basically, I need some files from
dir2/other1_dir to be under a certain directory that is under dir1 and some
other files from dirs/other2_dir to be under another directory that is under
dir1.
What I did was:
test1 -d dir1/another1_dir dir2/other1_dir file1 file2...
test2 -d dir1/another2_dir dir2/other2_dir file3 file4...
test test &test1 &test2
The checkout output looked very good but I couldn't find files 1-4 under
dir1 :-(
What I did wrong?
The problem is that the 'test' module is an ampersand module, so it
created a sub-directory named 'test' which contains
test/dir1/another1_dir/file1
test/dir1/another1_dir/file2
test/dir1/another2_dir/file3
test/dir1/another2_dir/file4
...
See this; http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_18.html#SEC162
If you want the top-level module in your working directory to be 'dir1'
then you should use an alias module instead, like this:
test -a dir1 test1 test2
Note two things:
1. If an alias module has the same name as the top-level directory
you'll get an infinite loop error, so the module name must be different
than the directory name; that's why my example uses 'test' and 'dir1'.
(I don't know if this is a bug or expected behavior; perhaps the CVS
gurus on the list can answer that.)
2. You must be sure to name your main directory (dir1) in the alias
module first. If you don't the dir1/CVS/Repository file will be set to
dir2 rather than dir1, and then you will not be able to check out dir1
itself.
--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666
- checking out a module with files from other modules, eranlevi, 2007/08/20
- Re: checking out a module with files from other modules, Mark E. Hamilton, 2007/08/20
- Re: checking out a module with files from other modules, eranlevi, 2007/08/20
- Re: checking out a module with files from other modules,
Mark E. Hamilton <=
- Re: checking out a module with files from other modules, eranlevi, 2007/08/20
- Re: checking out a module with files from other modules, Mark E. Hamilton, 2007/08/20
- Re: checking out a module with files from other modules, eranlevi, 2007/08/21
- Re: checking out a module with files from other modules, Mark E. Hamilton, 2007/08/21
- Re: checking out a module with files from other modules, eranlevi, 2007/08/21
- Re: checking out a module with files from other modules, Mark E. Hamilton, 2007/08/21
- Re: checking out a module with files from other modules, eranlevi, 2007/08/22