|
From: | Aggarwal, Vineet |
Subject: | How to checkout n-level of directories? |
Date: | Mon, 16 Apr 2007 17:45:18 -0400 |
> (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/module co -l module cd module cvs -d :pserver:address@hidden:/cvsroot/module -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 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, |
[Prev in Thread] | Current Thread | [Next in Thread] |