Re: Partial checkout of an ampersand module

2002-02-06 Thread Larry Jones

Pierre Asselin writes:
 
 If you really want a single file from part_one, figure out what
 part_one is.  There should be a line in the modules file that says
 something like
 
 part_one  path/to/part_one
 
 You can then do
 cvs checkout path/to/part_one/subdir/myfile
 
 and you will get myfile, 4 directories deep.

You should also be able to do:

cvs co part_one/subdir/myfile

in that case.  I haven't done any research on the original problem, but
I'm almost certain that it only applies to ampersand modules, not
regular (and probably not alias) modules.

-Larry Jones

Everything's gotta have rules, rules, rules! -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: Partial checkout of an ampersand module

2002-02-06 Thread Walsh, Matthew

If you want the same file all the time, you could also try this:

modules:
part_one_file  -d part_one path/to/part_one file

cvs co part_one_file

and you should get
U part_one/file


Haven't tried it with the -d, but I have done the selected file checkout
by specifying:

modulereposdirectory file ...

in the modules file.

It doesn't work with ampersand modules though. For example:

moduleA path/to/whateverA fileA
moduleB path/to/whateverB fileB
ampermodmoduleA moduleB

If you checkout moduleA you'll get fileA only. If you checkout moduleB
you'll
get fileB only, but if you check out ampermod, you'll get all of the
contents of whateverA and whateverB. Just ignores the file specifics for
some reason.

Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 3:15 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Partial checkout of an ampersand module
 
 
 Pierre Asselin writes:
  
  If you really want a single file from part_one, figure out what
  part_one is.  There should be a line in the modules file that says
  something like
  
  part_onepath/to/part_one
  
  You can then do
  cvs checkout path/to/part_one/subdir/myfile
  
  and you will get myfile, 4 directories deep.
 
 You should also be able to do:
 
   cvs co part_one/subdir/myfile
 
 in that case.  I haven't done any research on the original 
 problem, but
 I'm almost certain that it only applies to ampersand modules, not
 regular (and probably not alias) modules.
 
 -Larry Jones
 
 Everything's gotta have rules, rules, rules! -- Calvin
 
 ___
 Info-cvs mailing list
 [EMAIL PROTECTED]
 http://mail.gnu.org/mailman/listinfo/info-cvs
 

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Partial checkout of an ampersand module

2002-02-05 Thread Bill Biessman

QUESTION:
Is there a way to check out just one file from the tree below an ampersand
module specifying the complete path?

TOOLS:

I am using a Win2k machine with CVSNT with:
Concurrent Versions System (CVS) NT 1.11.1.2 Beta 3 (Build 33)
(client/server)
and NT clients with:
Concurrent Versions System (CVS) 1.10.8 (client/server)

MORE DETAIL:

I have a line in my modules file that looks like:
whole_thing part_one part_two

We usually check out the whole thing with:
cvs co -P -d whole_thing

which produces

whole_thing
whole_thing/CVS
whole_thing/part_one
whole_thing/part_one/CVS
whole_thing/part_one/the_rest_of_the_part_one_files_and_subdirectories
whole_thing/part_two
whole_thing/part_two/CVS
whole_thing/part_two/the_rest_of_the_part_two_files_and_subdirectories

This is what I expect.

since the whole project is about 5,000 files, I don't want to check it all
out when I don't have to.

In certain instances, I want to check out a file under part_one first, and
then check out the whole_thing.  e.g.:

cvs co whole_thing/part_one/subdir/my_file
look at the file for a while with a script, and then:
cvs update -C -P -d whole_thing
to get the rest of the files in the project.

The problem is that when I execute
cvs co whole_thing/part_one/subdir/myfile
 get the following error message:
cvs server: modules file missing directory for module
whole_thing/part_one/subdir/myfile
cvs.exe [checkout aborted]: cannot expand modules

trying to check out whole_thing/part_one/subdir also fails

If I first make a whole_thing directory, enter it, then check out
part_one/subdir/myfile
I get the desired file, but I do not get whole_thing/CVS, so when I execute
the
cvs update -C -P -d whole_thing
later on I get:
cvs server: nothing known about whole_thing

The problem occurs when executing the commands either from a client PC or in
a cygwin bash on the server.

Thanks
Bill


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Partial checkout of an ampersand module

2002-02-05 Thread Pierre Asselin

Bill Biessman [EMAIL PROTECTED] writes:

QUESTION:
Is there a way to check out just one file from the tree below an ampersand
module specifying the complete path?

MORE DETAIL:

I have a line in my modules file that looks like:
whole_thingpart_one part_two

First of all, you can already check out part_one by itself:
cvs checkout part_one

If you really want a single file from part_one, figure out what
part_one is.  There should be a line in the modules file that says
something like

part_onepath/to/part_one

You can then do
cvs checkout path/to/part_one/subdir/myfile

and you will get myfile, 4 directories deep.

...
look at the file for a while with a script, and then:
cvs update -C -P -d whole_thing
to get the rest of the files in the project.

Won't work.  Commit myfile from your deep sandbox and wipe out the
sandbox.  Then do a full checkout of whole_thing.  But if you're going
to check out whole_thing eventually, why not do it up front and keep
it checked out?

--
Pierre Asselin
Westminster, Colorado


-= Posted via Newsfeeds.Com, Uncensored Usenet News =-
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-==  Over 80,000 Newsgroups - 16 Different Servers! =-
___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs