Line ending translation extension
Martin Geisler
mg at lazybytes.net
Fri Sep 11 02:58:43 CDT 2009
"Stephen J. Turnbull" <stephen at xemacs.org> writes:
> Martin Geisler writes:
>
> > I'm wondering why you added the 'bin' filter? I think it's redundant: if
> > a file is binary, then don't list it in the .hgeol file and we wont
> > touch it.
>
> Because a common use-case is a project with no binaries, where you
> want the default to be 'native'. You could use 'to-lf', but that
> exposes details of the repo internal format, which is user unfriendly.
Would you not just specify
[patterns]
** = native
for such a repositry? (the '**' glob pattern matches all files, in all
directories).
> Speaking of user-unfriendly, I think the configuration syntax should
> use 'native', 'unix', 'windows', 'mac', 'binary', and maybe 'unicode'
> (where the last would be use of U+2028 LINE SEPARATOR).
We could definitely add 'unix' and 'windows' aliases. It's my
understanding that nobody should use the 'mac' format any more, and I
think letting users specify 'unicode' will do them more harm than good,
as in "ohh, I've heard that Unicode is good, let me enable that!" :-)
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
More information about the Mercurial-devel
mailing list