info-cvs
[Top][All Lists]
Advanced

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

solving the selective update of non-existent directories


From: Martin d'Anjou
Subject: solving the selective update of non-existent directories
Date: Wed, 13 May 2009 13:15:36 -0400 (EDT)
User-agent: Alpine 1.00 (LRH 882 2007-12-20)

Hi,

I have this problem:
http://lists.gnu.org/archive/html/info-cvs/2001-07/msg00142.html

Which is represented here by a short example. We want file "f4" under d1/d2/d3/d4, but we only have up to d1/d2 in the "local copy". Instead of fetching the file, CVS complains:

$ cvs up -r 1.1 d1/d2/d3/d4/f4
cvs [update aborted]: no such directory `d1/d2/d3/d4'

A solution is to create the missing directory tree, and manually add
CVS/Repository and CVS/Root:

$ mkdir -p d1/d2/d3/d4
$ mkdir d1/d2/d3/CVS
$ mkdir d1/d2/d3/d4/CVS
$ echo "bozo/d1/d2/d3" >d1/d2/d3/CVS/Repository
$ echo "bozo/d1/d2/d3/d4" >d1/d2/d3/d4/CVS/Repository
$ echo "/work/cvs_database" >d1/d2/d3/CVS/Root
$ echo "/work/cvs_database" >d1/d2/d3/d4/CVS/Root
$ cvs up -r 1.1 d1/d2/d3/d4/f4
cvs update: cannot open CVS/Entries for reading: No such file or directory
U d1/d2/d3/d4/f4
$

CVS apparently does not care that CVS/Entries is missing, and happily adds it. Since all the variables are known, this can be automated easily.

Anyone sees anything wrong with this solution?

Martin




reply via email to

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