Line ending translation extension

Martin Geisler mg at lazybytes.net
Thu Sep 10 18:43:30 CDT 2009


Dj Gilcrease <digitalxero at gmail.com> writes:

> Ok following Mads Kiilerich's suggestion I created a bitbucket project
> for the eol plugin http://bitbucket.org/digitalxero/hg-eol/overview/
>
> anyone who wants to help hack on it I'll add you or whatever I need to
> to let you commit on bitbucket (dont normally use it, prefer google
> code or assembla)

Please add me to it, I'm 'mg' on bitbucket. I've made a clone with a
test case (run 'make tests') and put it here for now:

  http://bitbucket.org/mg/hg-eol/

But it will probably be easier if we use a single main repository.

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.

Also, the global 'eol' variable is not set correctly, but I did not fix
that yet (you obviously need to use the 'global' keyword to assign
global variables).

> So assuming this extension ends up working how everyone needs, the
> issues of setting required extensions still exists.

I don't think we need that -- I think it's enough that people can enable
the eol extension in their global configuration (~/.hgrc on Unix) and
trust that it will pick up the settings from the .hgeol file as needed.

I was looking at the keyword extension tonight and it occured to me that
it does everything we want: it can expand and shring keywords (convert
to/from native format). It overrides lots of commands to ensure that
this is done correctly.

We're currently trying to make do with the encode/decode filters -- I
wonder if this is because the keyword extension makes things more
complicated that they are, or if we will also need to do this?

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090911/b8464e1c/attachment.pgp 


More information about the Mercurial-devel mailing list