[PATCH] bash/zsh completion: disable defaults and verbose output when completing

Brodie Rao dackze at gmail.com
Tue May 26 11:09:31 CDT 2009


On May 26, 2009, at 11:57 AM, Cedric Duval wrote:

> Brodie Rao wrote:
>>> Matt has been talking about introducing an option to disable  
>>> defaults
>>> (and/or deprecating defaults altogether). Wouldn't it make more  
>>> sense
>>> to work in that direction?
>
>> Well, I wanted to have the changes work with previous versions of hg,
>> but an option to disable defaults would be nice.
>
>> I looked at an earlier thread about adding a -D option to disable
>> defaults, but I think that would be a little cumbersome for scripts
>> trying to support versions of hg with and without the option. Maybe  
>> an
>> environment variable would work better?
>
> I wrote patches for disabling defaults a couple days ago (introducing
> both a --nodefault option and a HGNODEFAULTS environment variable),  
> but
> as discussed with Matt on IRC the real way to go would be a general
> switch (preferably as an environment variable for convenience) to turn
> off _everything_ (at once) that may affect the reproducibility of
> behavior/output: defaults, aliases, probably also extensions and
> localization...

I don't know that turning off extensions would be a good idea. For  
one, the completion scripts wouldn't be able to produce completions  
for mq.

Extensions that I can think of off the top of my head that modify  
output are color and pager, but they both check that stdout is a tty  
before running.


More information about the Mercurial-devel mailing list