You can type "cvs status filename", and look for "Sticky Options:" in the
output. If "-kb" is the value there, then the file is stored as binary.
Otherwise, it is stored as text.
About changing file status:
http://www.cvshome.org/docs/manual/cvs_9.html#SEC80
Please note that the "sticky options" are per file, not per revision, which
means that if you change the status to binary or text, it will effect all
revisions of the file.
Shlomo
_______________________________________________
Info-cvs mailing list
Info...@gnu.org
http://mail.gnu.org/mailman/listinfo/info-cvs
> is there a cvs command which can determine if a file is stored as
> binary/text?
cvs status shows it (under Sticky options; usually -kb means binary, but
see the manual for more detailed information).
> Can I change file status from text to binary (and vice versa) during his
> life in the repository?
Yes. cvs admin -kb <file> changes a file to binary while cvs admin -kkv
changes it to text. But this is a simplification, actually it's matter of
selecting the proper keyword substitution mode. But those do the trick
usually, and again, see documentation and cvs -H admin for further
information.
Jouni
A number of people have mentioned using "cvs status", but that tells you
the keyword expansion mode for the file in you working directory, which
may not be the same as the repository file (although it usually is). To
find out how the file is actually stored in the repository, use "cvs
log" (with -h if you like) and look at the "keyword substitution": "kb"
is binary, anything else is text.
-Larry Jones
Even though we're both talking english, we're not speaking the same language.
-- Calvin