Line ending translation extension

Douglas Philips dgou at mac.com
Tue Sep 8 09:19:34 CDT 2009


On or about 2009 Sep 8, at 8:31 AM, toni arte indited:
> I only see this kind of hooks as a major annoyance to the end-users.  
> There should be a way to configure the system to silently do the  
> 'right thing' (TM).

Sorry, I disagree. CVS's stoopidities, where it thought it was "doing  
the right thing", have burned me way too many times for me to want to  
ever use a system that does that again.

Mercurial, IMHO, does the correct thing, and provides hooks so that  
you can customize it.
I prefer to work on projects with well known and advertised coding  
standards, not ones where the tools "silently" change things behind my  
back. Your mileage apparently does vary, quite a lot. Since I don't  
see a common ground here, I don't think I have anything further to add  
to this part of the discussion.

> * Mercurial (out-of-the-box) only supports the encode/decode  
> settings on a user-maintained file, so everything is up to the end- 
> user. No settings inherited from the cloned repository

There are deep security reasons for that. I do wish there were a safe  
way to have some settings inherited from the cloned repository, but so  
far no one (myself included) has figured out what that means and how  
to do it. It all sounds great at 50,000 feet hand-waving, but security  
and risk are all about the details you can't see from that height  
through all the hand-waving.

-Doug



More information about the Mercurial mailing list