[POLL] Mass renaming options for consistency + guidelines

David Demelier demelier.david at gmail.com
Thu Jul 13 09:15:38 UTC 2017


Hello,

I'm one of the creator of the ConfigConsolidationPlan [0].

In Mercurial there was a big issue regarding the options continuously 
added without any guideline into the hgrc file. This leads to massive 
inconsistency like :

     allowpull
     allow_push
     assume-tty

In the process of renaming those options without breaking existing user 
installations, we have added a configitems registry + aliases. The 
aliases offers a way to select the same option with a different section 
name (e.g. ui.username also search for ui.user).

I'll start renaming options once a convention has been chosen correctly, 
I've proposed (seconded by Pierre-Yves) to use hyphens between words as 
it's common in projects [2].

Please tell me your thoughts, if you are okay on this convention and 
I'll start sending new aliases progressively.

I'll also add an official guideline regarding option naming somewhere in 
the wiki (probably on the guideline pages).

Then I'll attire your attention to refuse any new code that won't follow 
this convention.

[0]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan
[1]: 
https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan#Proposal:_use_-_in_config_examples

-- 
David Demelier


More information about the Mercurial-devel mailing list