[Top][All Lists]

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

Re: Getting only directory not files

From: Russ Sherk
Subject: Re: Getting only directory not files
Date: Fri, 21 Oct 2005 14:21:23 -0400

On 21 Oct 2005 09:58:38 -0700, Ben Hagenberger <address@hidden> wrote:
I need to know how to grab a directory from cvs without getting the
We have a code migration utility that needs to get cvs updates but only
get the files that are specified in the migration package. For example,
if the migration package speciefies the file as
modulename\basedir\directory1\file1 then it needs to obly extract file1
into directory1. We have everything working where we change down to
directory1 and do a 'cvs update file1'. We are having a problem when a

Don't change down to directory1 and specify the full module path to the file.

cd modulename\..
cvs update  modulename\basedir\directory2\file2

file is specified in a new directory, for example

If I go ahead and create directory2, then a 'cvs update' then it fails
because there are not CVS ENTITY files in that directory. If I do a
'cvs update -dl directory2' then it creates directory2 and updates all
files in that directory.

To my knowledge there is no way to obtain just a directory (unless the directory is actually empty in cvs).

Any ideas on how I can create the directory and only the files that I

Another idea is to apply a tag only to the files you want in the migration package and do a cvs co -rMIG_TAG modulename.  This will only pull down the tagged files (unless you use -f; f=force head revision if tag does not exist on file)

cvs rtag -r <rev/tag> MIG_TAG modulename\basedir\directory1\file1
cvs rtag -r <rev/tag> MIG_TAG modulename\basedir\directory2\file2
cvs co -r MIG_REV modulename\basedir\directory1 modulename\basedir\directory2


Info-cvs mailing list

reply via email to

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