Line ending translation extension

Stephen J. Turnbull turnbull at sk.tsukuba.ac.jp
Fri Sep 11 05:02:07 CDT 2009


Martin Geisler writes:
 > "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).

Yes.  Sorry, I was unclear.  I meant to take the next step.  Now, if
you want to add a binary (say, a PNG for an icon or favicon), you need
to use either 'to-lf' (which is unintelligible to non-programmers) or
'binary'.

 > 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!" :-)

Yeah, that was my brain going in reverse (I was thinking U+2028 could
be specified for *internal* storage, but these are specifying the
*working* file's format).


More information about the Mercurial-devel mailing list