Easier way to disable mq patch commit message truncation?

L. David Baron dbaron at dbaron.org
Tue May 4 05:08:26 UTC 2010


Starting in Mercurial 1.5 (I think), various mq commands (hg qser
-s, hg qtop -s, hg qap -s, hg qun -s) started truncating the patch's
commit message at the width of the terminal.

In 1.5 and 1.5.1 I could disable this behavior by adding:
> [defaults]
> qseries = --noninteractive
> qtop = --noninteractive
> qapplied = --noninteractive
> qunapplied = --noninteractive
to my ~/.hgrc .  I wanted to disable it because my primary use of
the -s forms of these commands is to grep for various things in the
commit messages in my patch queue (e.g., "hg qser -s | grep 363249"
to find all the patches for bug 363249, "hg qser -s | grep "r=" to
find all the patches that have been reviewed).

In 1.5.2 it seems this no longer works.  Instead, it seems I have to
set an environment variable (HGPLAIN=1), and there's no way to
configure Mercurial to have this as a default behavior without
having this variable affect lots of other commands (although I'm not
yet sure what effects it has).

I'd like to know:

 (1) if there's a better way to do this that doesn't have effects on
 other commands, and

 (2) if there isn't, what those effects on other commands are

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/



More information about the Mercurial mailing list