[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS problems
From: |
Mike Ayers |
Subject: |
Re: CVS problems |
Date: |
Wed, 19 Jun 2002 22:47:45 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 |
This can happen easily using the command-line client on OS X. When you
do so, because the command-line client is a Unix program, it assumes
that the native file format is Unix. Since it's a Unix client going
into a Unix repository, it performs no line feed conversion. Therefore,
if you added a file with Mac line endings (CR only), they'll get stored
in the repository that way.
This is exactly the problem I just stumbled over with Windows/Cygwin now
happening with Mac/OSX. I think this illuminates a need to be able to
canonicalize line endings as part of the commit operation. Is there a hook
that can permit a script to be run over a file during commit? I have noticed
mention on this list of many hooks, but can't find the docs for 'em (I rely on
Cederqvist).
I would really like to have such a hook. In fact, it would be desireable to
have line ending canonicalization scripts ready with CVS, to be turned on with
a switch of some sort. And world peace, that'd be nice, too...
Seriously, what are my options for getting CVS to manage this?
aTdHvAaNnKcSe,
/|/|ike