[issue2157] --quite not override .hgrc settings for in/out command.

Oleksandr Gavenko bugs at mercurial.selenic.com
Sun Apr 25 19:03:04 UTC 2010


New submission from Oleksandr Gavenko <gavenkoa at gmail.com>:

I use code:

  $ hg --quiet -R $from in  --template '{node}\n' $to | wc -l - | awk 'print $1'

to count outgoing chengesets.

All be ok while I not set in ~/.hgrc:

 [defaults]
 incoming = -v
 outgoing = -v

After that 

  $ hg --quiet -R $from in  --template '{node}\n' $to

print

  comparing with /cygdrive/e/srv/hg/gtd/    <-- bad line!
  searching for changes                     <-- bad line!
  3672aefbb69f9962e1f188b6987901cccbc5cd8e
  d76c21293e35c273550906f997f8545548b1afc6

So I get wrong count 4 instead correct 2!

To resolve this issue I use code

  $ hg --config defaults.outgoing="" --quiet -R $from in  --template
'{node}\n' $to

with work as expected.

I think --quiet option must have high priority then --verbose, so
above situation and

  $ hg --verbose --quiet -R $from in  --template '{node}\n' $to

work with --quiet, not with --verbose.

Along this --debug must have high priority among --verbose and --quiet.

----------
messages: 12373
nosy: gavenkoa
priority: bug
status: unread
title: --quite not override .hgrc settings for in/out command.
topic: hg

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2157>
____________________________________________________


More information about the Mercurial-devel mailing list