Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

binary vs. text files

16 views
Skip to first unread message

Dusan Juhas

unread,
Jul 17, 2002, 6:11:11 AM7/17/02
to
Hello,
is there a cvs command which can determine if a file is stored as
binary/text?
Can I change file status from text to binary (and vice versa) during his
life in the repository?
If so, how it can be done?
Thank you.
--
Best regards,
Dusan Juhas


Reinstein, Shlomo

unread,
Jul 17, 2002, 6:28:20 AM7/17/02
to
Hi,

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

Jouni Heikniemi

unread,
Jul 17, 2002, 6:33:09 AM7/17/02
to
On Wed, 17 Jul 2002, Dusan Juhas wrote:

> 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


Larry Jones

unread,
Jul 17, 2002, 10:26:49 AM7/17/02
to
Dusan Juhas writes:
>
> is there a cvs command which can determine if a file is stored as
> binary/text?

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

0 new messages