[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

CR->LF conversion with commit hooks?

From: Hamilton Link <helink_at_sandia.gov>
Date: 2004-09-17 01:24:59 CEST

I have this vague impression that the various svn repository hooks can
do wonderous, magical things. Can they alter files being committed to
the repository such that the client figures out this is happening and
effectively auto-updates to capture changes made at commit time?

At one point I think I saw someone asking if the commit hooks could
auto-format C code; I don't know what the verdict on that was. In my
case, it would be to enforce that code files are considered text files,
convert CRs to LFs, do not have svn:executable as a property, and have
svn:mime-type set to text/plain.

Why is this important to me? Well, certain Mac OS X applications
default to using CR as an end-of-line marker, but most of the unix
underpinnings in Mac OS X can't really cope, and I _really_ don't want
files of both flavors floating around the repository. I'd like to stamp
out the CR files, but I'd rather people not have to constantly remember
to run little conversion utilities before they add or commit files into
the repository, and I'd *really* like commits to not be rejected due to
easily-detected, easily-fixed trivium, or it will be a major barrier to
use.

thanks,
h

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 17 01:23:03 2004

This is an archived mail posted to the Subversion Users mailing list.