Re: commit -- watch out for binary files


Subject: Re: commit -- watch out for binary files
From: Eric W. Sink (eric@sourcegear.com)
Date: Tue Dec 21 1999 - 11:10:19 CST


I am *pretty sure* that the cvswrappers feature does not work when
using pserver.

--

On Tue, Dec 07, 1999 at 07:33:06PM -0600, Stephen Hack wrote: > Return-Path: <owner-abiword-dev-outgoing@abisource.com> > Received: from parsons.abisource.com (postfix@parsons.abisource.com [206.185.0.93]) > by postman.sourcegear.com (8.9.3/8.9.3) with ESMTP id TAA13678; > Tue, 7 Dec 1999 19:34:00 -0600 > Received: by parsons.abisource.com (Postfix) > id EE18211C035; Tue, 7 Dec 1999 19:33:53 -0600 (CST) > Delivered-To: abiword-dev-outgoing@abisource.com > Received: by parsons.abisource.com (Postfix, from userid 30) > id E947611C036; Tue, 7 Dec 1999 19:33:52 -0600 (CST) > Delivered-To: abiword-dev@abisource.com > Received: from argus.itg.uiuc.edu (argus.itg.uiuc.edu [130.126.126.196]) > by parsons.abisource.com (Postfix) with ESMTP > id 1E4DA11C035; Tue, 7 Dec 1999 19:33:52 -0600 (CST) > Received: (from shack@localhost) > by argus.itg.uiuc.edu (8.9.3/8.8.7) id TAA05166; > Tue, 7 Dec 1999 19:33:06 -0600 > Date: Tue, 7 Dec 1999 19:33:06 -0600 > From: Stephen Hack <shack@uiuc.edu> > To: Paul Rohr <paul@abisource.com> > Cc: abiword-dev@abisource.com > Subject: Re: commit -- watch out for binary files > Message-ID: <19991207193306.B2944@uiuc.edu> > References: <3.0.5.32.19991207162525.00b16100@mail.abisource.com> > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > X-Mailer: Mutt 0.95.7us > In-Reply-To: <3.0.5.32.19991207162525.00b16100@mail.abisource.com> > X-Mailer-Info: http://www.mutt.org > X-Url: http://www.students.uiuc.edu/~shack > Organization: University of Illinois > Sender: owner-abiword-dev@abisource.com > X-Loop: abiword-dev@abisource.com > Precedence: bulk > Status: RO > Content-Length: 2112 > Lines: 63 > > The easiest way to tell CVS that a specific file type is binary, is via the > CVSROOT/cvswrappers > > Here's the comment at the beginning of the file > > > # This file affects handling of files based on their names. > # > # The -t/-f options allow one to treat directories of files > # as a single file, or to transform a file in other ways on > # its way in and out of CVS. > # > # The -m option specifies whether CVS attempts to merge files. > # > # The -k option specifies keyword expansion (e.g. -kb for binary). > # > # Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) > # > # wildcard [option value][option value]... > # > # where option is one of > # -f from cvs filter value: path to filter > # -t to cvs filter value: path to filter > # -m update methodology value: MERGE or COPY > # -k expansion mode value: b, o, kkv, &c > # > # and value is a single-quote delimited value. > # For example: > #*.gif -k 'b' > > To add png, doc, and what every other type of binary files > *.png -k 'b' -m COPY > *.doc -k 'b' -m COPY > > This way, other files (like README) will have the lf's converted. > > -shack > > On Tue, Dec 07, 1999 at 04:25:25PM -0800, Paul Rohr wrote: > > You may want to pay more attention than usual to your next CVS checkout. > > > > We've been accumulating a lot of binary files in our CVS archives without > > letting CVS *know* they're binary, by making sure the file got added that > > way in the first place: > > > > cvs add -kb foo.png bar.doc other_binary_file > > > > This means that if you're not on the platform where those files were checked > > in, it'll go through linefeed conversion, producing gibberish. > > > > Thus, I've just performed the necessary CVS magic incantations to let it > > know that all *.doc and *.png files in the following trees are binary: > > > > wv/* > > abi/shots/* > > > > This seems to be working much better for me, but if you want to be paranoid, > > it may be worth archiving a copy of your current view before your next "cvs > > update" in these subtrees. It also may take a bit longer than you're used > > to. :-) > > > > Paul > >

-- Eric W. Sink, Software Craftsman SourceGear Corporation eric@sourcegear.com



This archive was generated by hypermail 2b25 : Tue Dec 21 1999 - 11:22:52 CST