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

Re: svn and automatic line ending

From: Karl Berry <karl_at_freefriends.org>
Date: 2005-01-18 01:09:26 CET

Hi Julian,

Thanks very much for all the additional info. I understand some of the
issues better now.

    you might not want to do this because you are not interested in the
    MIME types, and Subversion's binary/text guess works accurately
    enough for you, and you just want all the files that were guessed as
    text to have svn:eol-style set.

Exactly. BTW, are you interested in reports of files that the heuristic
detects incorrectly?

    How about the ability to specify:
    + What properties to set for files detected as binary;
    + What properties to set for files detected as text.

That sounds just fine, and quite practical. (I understand that
something that just solves setting eol-style for heuristic text files
isn't the way to go.)

    At least, if it is, then it needs to be done
    with a hook so that arbitrary code can be invoked.

Anything that lets the job get done. I can imagine that implementing a
totally general hook structure could be quite a bit more difficult than
the property-setting based on the heuristic result. Might not be worth it.

    The auto-props mechanism is a very limited feature and it feels
    wrong to extend it in ad-hoc ways.

I understand, but both auto-props and the properties themselves (not
just eol-style, although that's perhaps the most important) are crucial
to getting a usable system (for multi-platform projects anyway), in
practice.

    as us supplying a script that can be customised to do exactly what
    each team wants.

If you mean a script of some sort that can be hooked into svn
add/import, then yes, that sounds fine too.

Ultimately, I just want the users to be able to run simply "svn add".
I hope this isn't an unreasonable goal.

Best regards,
karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 18 01:12:55 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.