Weblog Entries for Monday, June 20, 2003

Changing Keyword Expansion for a File in CVS

A co-worker of mine, Tim Perry, sent me a useful link [1] today.

If you've ever used cvs, at some point you've probably added an image or some other binary file to the repository, w/o using cvs add -kb <filename>. Here's an example of using cvs admin to fix the problem:

$ echo '$Id$' > kotest
$ cvs add -m"A test file" kotest
$ cvs ci -m"First checkin; contains a keyword" kotest
$ cvs admin -kb kotest
$ cvs update -A kotest
# For non-unix systems:
# Copy in a good copy of the file from outside CVS
$ cvs commit -m "make it binary" kotest
[1]http://www-es.fernuni-hagen.de/cgi-bin/info2html?(cvs)Binary%20howto

Saved Friday, June 20, 2003 at 03:20 PM

Links Roundup

Saved Friday, June 20, 2003 at 09:57 AM

View June, 2003, latest entries, or archive <../../../archive.html>