Martin d'Anjou
2009-05-13 17:15:36 UTC
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
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