OK, my understanding is, if you issue: cvs watch add [dirname]
(where [dirname] specifies a directory) then, if any subdirectories are added to [dirname], you will automatically get a watch for that new directory. However, CVS doesn't seem to be doing this. I've tried using version 1.11.9 and 1.12.9, and neither one will add the D entries to CVS/fileattr, and if you add a subdirectory, then no CVS/fileattr file is created. Yes, I know these are both old versions, but I've checked the NEWS file and there is no mention of any bug fixes to 'cvs watch'. Here is a sequence of commands that illustrates the problem: [EMAIL PROTECTED]:$ cvs co cvs-test/jhyslop cvs checkout: Updating cvs-test/jhyslop [EMAIL PROTECTED]:$ cd cvs-test/jhyslop/ [EMAIL PROTECTED]:$ mkdir subdir [EMAIL PROTECTED]:$ cvs add subdir Directory /cvs/cvs-test/jhyslop/subdir added to the repository [EMAIL PROTECTED]:$ cvs watch add subdir [EMAIL PROTECTED]:$ cvs watchers [EMAIL PROTECTED]:$ cat /cvs/cvs-test/jhyslop/CVS/fileattr cat: cannot open /cvs/cvs-test/jhyslop/CVS/fileattr [at this point, I would expect the fileattr to exist, since I issued a 'watch add' command] [EMAIL PROTECTED]:$ cd subdir [EMAIL PROTECTED]:$ echo some stuff>afile [EMAIL PROTECTED]:$ cvs add afile cvs add: scheduling file `afile' for addition cvs add: use 'cvs commit' to add this file permanently [EMAIL PROTECTED]:$ cvs ci -m "a file" afile RCS file: /cvs/cvs-test/jhyslop/subdir/afile,v done Checking in afile; /cvs/cvs-test/jhyslop/subdir/afile,v <-- afile initial revision: 1.1 done [EMAIL PROTECTED]:$ cvs watch add . [EMAIL PROTECTED]:$ cat /cvs/cvs-test/jhyslop/subdir/CVS/fileattr Fafile _watchers=jhyslop>edit+unedit+commit [well, OK, it created the fileattr file, but where's the entry D _watchers=jhyslop>edit+unedit+commit I *did* specify a directory name. Hmm... maybe it doesn't like '.' as a directory specifier] [EMAIL PROTECTED]:$ cd .. [EMAIL PROTECTED]:$ cvs watch add subdir [EMAIL PROTECTED]:$ cat /cvs/cvs-test/jhyslop/subdir/CVS/fileattr Fafile _watchers=jhyslop>edit+unedit+commit [Still no 'D _watchers=' entry in fileattr] [EMAIL PROTECTED]:$ cd subdir [EMAIL PROTECTED]:$ mkdir nowatches [EMAIL PROTECTED]:$ cvs add nowatches Directory /cvs/cvs-test/jhyslop/subdir/nowatches added to the repository [EMAIL PROTECTED]:$ cd nowatches [EMAIL PROTECTED]:$ cvs watchers [EMAIL PROTECTED]:$ cat /cvs/cvs-test/jhyslop/subdir/nowatches/CVS/fileattr cat: cannot open /cvs/cvs-test/jhyslop/subdir/nowatches/CVS/fileattr [still nothing] [EMAIL PROTECTED]:$ vi /cvs/cvs-test/jhyslop/subdir/CVS/fileattr [ at this point, I manually added the line D _watchers=jhyslop>edit+unedit+commit to fileattr] [EMAIL PROTECTED]:$ cd .. [EMAIL PROTECTED]:$ mkdir haswatches [EMAIL PROTECTED]:$ cvs add haswatches Directory /cvs/cvs-test/jhyslop/subdir/haswatches added to the repository [EMAIL PROTECTED]:$ cat /cvs/cvs-test/jhyslop/subdir/haswatches/CVS/fileattr D _watchers=jhyslop>edit+unedit+commit [Oh, look, there it is - but only because it was there to begin with] As the last line of my log indicates, if the fileattr _already_ contains a 'D' entry, then new directories behave as expected. It's only if the fileattr does not already have a 'D' entry that there's a problem. So, am I doing something wrong, or is this a bug that nobody's noticed yet? -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) _______________________________________________ Bug-cvs mailing list Bug-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-cvs