"hg status -q" ignores -q
Idan Kamara
idankk86 at gmail.com
Wed Jul 27 21:04:15 UTC 2011
On Wed, Jul 27, 2011 at 11:15 PM, Matt Mackall <mpm at selenic.com> wrote:
>
> On Wed, 2011-07-27 at 14:00 -0600, Stuart McGraw wrote:
> > On 07/27/2011 03:50 AM, Mads Kiilerich wrote:
> > > On 07/27/2011 02:10 AM, Stuart McGraw wrote:
> > >> I am running Fedora-15 system and just upgraded from
> > >> mercurial-1.8.4 to mercurial-1.9 using the Fedora
> > >> packaged update (i.e, yum).
> > >>
> > >> When I do a "hg status -q" in my hg repo, it now lists
> > >> all the untracked files, as though -q had not been given.
> > >> Two days ago when mercurial-1.8.4 installed and with no
> > >> no changes to the repo or any hg-related files (AFAIK),
> > >> "hg status -q" worked as expected.
> > >>
> > >> I do not know if this is a local environment issue, a
> > >> mercurial-1.9 issue, or a Fedora packaging issue, but I
> > >> thought I would start with this list for advice.
> > >> Any suggestions on where the problem might be and how
> > >> to fix?
> > >
> > > It works fine here.
> > >
> > > What do you get from
> > > hg --debug showconfig ui
> >
> > Thanks! By temporarily renaming the init files listed
> > by that command, I isolated the problem to my ~/.hgrc
> > file and in particular to
> >
> > [ui]
> > verbose=True
> >
> > Removing the "verbose" line fixed the problem.
> > However, this line did not have such an effect in any
> > version of Mercurial up to 1.9, nor do I see anything
> > in the hgrc manpage to indicate it might have this effect
> > (although admittedly the manpage description is so vague
> > as to allow almost any output.)
>
> This seems to be a side-effect of the new command-server architecture in
> 1.9. Command-line settings should take precedence.
This isn't a regression, it's just that now Mercurial does the right
thing due to this:
http://selenic.com/repo/hg/rev/1b8c70c9f47c
So effectively it sees both -q (from the cmdline) and -v (from hgrc), which
cancel each other out.
More information about the Mercurial
mailing list