info-cvs
[Top][All Lists]
Advanced

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

Re: How to checkout n-level of directories?


From: Daniel Yek
Subject: Re: How to checkout n-level of directories?
Date: Tue, 17 Apr 2007 09:57:21 -0700

At 02:45 PM 4/16/2007, Aggarwal, Vineet wrote:
> (1)
> How can I check out the first level or two levels of directories and files
> of a huge module without "recursive descend"?
>
> I only want to look at the available top-level directories.
>
> The following command only check out the "module" directory itself, but I
> want to check out the files and one hierarchy level of subdirectories in
> "module":
> cvs -d :pserver:address@hidden:/cvsroot/module co -l module
>
>
> (2)
> How can I list the first level directories (and probably files) of a module
> without actually checking it out?
>



A dirty solution is to do a local checkout followed by a dummy update:
cvs -d :pserver:address@hidden:/cvsroot/modulerepo co -l module

Thanks, Vineet. Really appreciate the response.

I was having problems figuring out all of existing "module" names in a depot. So, this still isn't quite solving the problem.

However, I later remembered a viewcvs URL that allowed me to get to the necessary information, so it is no longer a problem for me, but it is unexpected that this operation appeared to be difficult or impossible using cvs commands. (There might be reasons for it that I'm not aware of...)


cd module
cvs -d :pserver:address@hidden:/cvsroot/modulerepo -qn up –d
This will list the directories and won’t checkout.

The output can be formatted to a simple list:
cvs -qn up -d 2>&1 | cut -f 5 -d' '

This is rather useful! Glad to know how "update -d" option can be used for this purpose.


This list may be used to checkout the first level directories (e.g. using xargs)

The process may be repeated (using a script) to checkout or view nth-level directories.


Regards,
Vinnie

Thank you!


--
Daniel Yek





reply via email to

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