[PATCH 0 of 4] mq/qqueue: quiet output, and bash_completion, v.2
Yann E. MORIN
yann.morin.1998 at anciens.enib.fr
Mon Aug 9 08:16:44 UTC 2010
Patrick, All,
On Monday 09 August 2010 094824 Patrick Mézard wrote:
> Let's keep it simple. Why do you need #4? If the caller wants the queue
> list without active then pass --quiet. $HGPLAIN is used to disable
> user-specific configuration and terminal dependent behaviour, not to
> substitute to command line flags if there are any.
OK, I had the feeling that HGPLAIN was also meant so that it made it
easy for scripts to parse the output. But you're right, #4 is not
really required. I should have stated so in the intro message. I just
came with it as it was easy enough to do, but it can be easily dropped.
> I see #3 can be useful but I probably won't take it right now as it does
> not solve an immediate problem, but we can talk about it later.
It makes it easy for scripts to get current queue name without having
to parse the output of --list, grep-ing for '(active)', and cut-ing
for the first word (or awk-ing...). To me, it was the other-side of the
coin: we have quiet list without '(active)', and we have the current
queue name.
> So I will take #1 and #2 without the --quiet doc bit, which is already
> mentioned in the general help. I don't think we have documented any
> output behaviour change with --quiet until now.
The global help states 'suppress output', which, to me, is plain wrong in
this case. There *is* output, it's just that it is not verbose.
Thanks for your comments! :-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ |
| --==< O_o >==-- '------------.-------: X AGAINST | /e\ There is no |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. |
'------------------------------'-------'------------------'--------------------'
More information about the Mercurial-devel
mailing list