Line ending translation extension

"Martin v. Löwis" martin at v.loewis.de
Sun Sep 6 01:56:48 CDT 2009


> This has come up on the python-dev list, but I think the solution to
> this is easy - first, ensure the extension works correctly on
> non-windows platforms (which will be a requirement anyway IIUC, so the
> few rules which do *not* indicate native EOLs must still work on
> non-windows platforms.)  Secondly, use a repository to edit files where
> other than 'native' line endings are implemented.  This will force hg to
> perform conversions on Linux for most working-tree operations.

Not necessarily. If you implement CRLF and LF so that the files are
stored as-is in the repository (which sounds like a sensible strategy),
you won't ever have to convert them. So the only case where you do have
to convert is "native" files on Windows.

Regards,
Martin


More information about the Mercurial-devel mailing list