Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2001 16:33:06 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Bill Moran <wmoran@iowna.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: rcs and binary files
Message-ID:  <20010821163305.C25065@hades.hell.gr>
In-Reply-To: <3B817F2D.F2C24649@iowna.com>; from wmoran@iowna.com on Mon, Aug 20, 2001 at 05:20:45PM -0400
References:  <3B817F2D.F2C24649@iowna.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Bill Moran <wmoran@iowna.com>
Subject: rcs and binary files
Date: Mon, Aug 20, 2001 at 05:20:45PM -0400

> I'm getting to know the rcs/cvs/etc system little bits at a time.
> At this point my question is how does rcs handle binary files?
> I know that cvs will use rsync to optimize downloads of changed
> binary files, but how does rcs handle checking in/out? Does it
> keep some sort of binary diffs?

CVS can be used to track changes to binary files, but it doesn't
handle binary files very nicely.  If you check in a new version, the
RCS file contains both versions of the file, and committing many small
changes to binary files will soon make the RCS file grow very big.

> This is important as I expect to be using rcs/cvs to do a web
> project soon. Obviously, keeping track of changes to the gifs
> and jpegs will be important.

I've added to my CVSROOT/cvswrappers file the following:

	*.gif	-k 'b'
	*.jpg	-k 'b'

This makes sure that even if I forget to add the '-k b' option during
'cvs add' the files with gif/jpg extensions will still be treated as
binary files by CVS.

-giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010821163305.C25065>