[Python-Dev] pymigr: Ask for hgeol-checking hook.

Antoine Pitrou solipsis at pitrou.net
Sat Feb 26 19:13:29 CET 2011


> In Mercurial, it's just a hook, and optional. So we can't be sure all
> users use it correctly - and in my (limited) experience with Mercurial,
> chances are high that users will make mistakes in that respect (i.e.
> in one out of one cross-platform projects, a committer had issues
> with CRLF, leading to catastrophic repository corruption).

“Catastrophic” repository “corruption”? This sounds very strongly like
an urban legend.
Perhaps some files had later to be fixed. But that shouldn't be out of
the realm of normal Mercurial commands (aka "edit file to fix endings,
then hg commit and hg push").

> So I think it's absolutely necessary that files with incorrect
> eol-style are blocked from being pushed. Or else we will all
> suffer and eventually die :-)

Well, the latter is a given, isn't it? ;)

Anyway, hgeol actually seems to include such a hook. I'll try to enable
it.

Regards

Antoine.




More information about the Python-Dev mailing list