Actions:
|
2011-10-13 10:20 AEST by Glen Starrett - A customer reports that if they use a script to "clean" their binary files like
so and update:
del bin\*.* /s/q
cvs update -d
... they get errors "ignoring <folder> (CVS/Repository missing)" at the bin
directory level and all sub directories under it.
WORKAROUND: Do not empty the "CVS" directories, or delete them completely. For
example, this script works and is supported:
rd /q/s bin
cvs update -d
Reproduction details in ZIP file attached. |
|
2011-10-13 10:21 AEST by Glen Starrett - Created an attachment (id=2203)
Reproduction information
First a quick explanation of the environment. I'm sure you'll work this out
from the logs but just to be clear from the start.
The CVS module is called "Core_System".
It contains a folder "windows" which is where I'm running these tests from.
That in turn contains one called "bin" which is the one I'm deleting/updating.
My sandbox starts at C:\BNCS, so "bin" is at "C:\BNCS\Core_System\windows\bin".
CVS Server is collediacontrol.tv.bbc.co.uk, repository is called CcCvs (or
cccvs), user is bncs_runtime.
So CVSROOT is :sspi:bncs_runtime@collediacontrol.tv.bbc.co.uk:/CcCvs.
Starting this process with Core_System intact. This has been achieved starting
with a Check-out and with various Updates following that(I haven't cleared the
whole thing out and started again to show this problem).
First action is "cvsproblem.bat _fail_".
dirs_fail_1.txt and dirsb_fail_1.txt show the files before I start. (dirs
means dir/s, dirsb means it's from dir/s/b)
All CVS files are present and apparently correct.
I then do the del *.*. This deletes all the files but leaves the folders.
The listings after this are dirs[b]_fail_2.txt. I forgot to add /ah to show
the hidden folders but they (the CVS folders) are present but empty.
I then do a "cvs update -d" to try to get everything back. The logs for that
are in update_fail_1.txt and update_fail_1e.txt. The 'e' is from 2> so is the
error channel. Here you can see "CVS/Repository missing" messages.
I then do another dir/s[/b] to produce dirs[b]_fail_3.txt. Now you can see
that I've got all the CVS folders but they don't contain any Root or Repository
files.
At this point Tortoise unsurprisingly doesn't show any overlays.
To get everything back to (apparently) normal I now run "cvsfix.bat _recover_".
This is almost the same as cvsproblem except that it does "rmdir /s/q" to
delete the whole folder structure including the CVS folders.
When this does its update -d, everything comes back (apparently) correctly.
|