Discussion:
Is "cvs watch on" set - How can I tell from the command line?
Peter Toft
2010-11-19 13:38:14 UTC
Permalink
Hi all

I am using "cvs watch on" for some non-mergeable files.

That information is stored in the CVS/fileattr subdirs within
$CVSROOT.
I see now that suddenly the watch disappeared (actually the two CVS/
directory from certain parts of the $CVSROOT disappeared).
Have anyone seen similar troubles?

Question; how can I - from the command line ask whether file XYZ
has "cvs watch on"?
* I can traverse my fileattr and check whether the file(s) are there
with a line
F<FILENAME> _watched=
but I suspect you have some mythmagical cvs command to ask for
status :)


Best

--
Peter Toft <***@linuxbog.dk> http://petertoft.dk
Jim Hyslop
2010-11-20 17:11:53 UTC
Permalink
That information is stored in the CVS/fileattr subdirs within $CVSROOT.
I see now that suddenly the watch disappeared (actually the two CVS/
directory from certain parts of the $CVSROOT disappeared).
Have anyone seen similar troubles?
There are issues with the fileattr file being unexpectedly changed if a
particular user has checked out two copies of a file, but I haven't
heard of any problems with the CVS directory disappearing entirely.
Question; how can I - from the command line ask whether file XYZ
has "cvs watch on"?
Looks like you've found one of the holes in the CVS command coverage :-/
As far as I can see, you'll have to write a script to parse CVS/fileattr
for the '_watched=' statement.

- --
Jim Hyslop
Dreampossible: Better software. Simply. http://www.dreampossible.ca
Consulting * Mentoring * Training in
C/C++ * OOD * SW Development & Practices * Version Management

Loading...