[PATCH] mq: toggle truncating using ui.plain() rather than ui.interactive()

Dan Villiom Podlaski Christiansen danchr at gmail.com
Thu Apr 15 07:51:08 CDT 2010


On 15 Apr 2010, at 14:16, Dan Villiom Podlaski Christiansen wrote:

> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
> # Date 1271333167 -7200
> # Node ID 603be25b588d5716da8cb2a2f19994b23d583e04
> # Parent  a2c1b977f1c5be0a08521cc69810bf0e9389d7b9
> mq: toggle truncating using ui.plain() rather than ui.interactive()
> 
> This enables truncated messages when using `qseries' with the `pager'
> extension.

I'm not sure if this is the correct solution, but it was the simplest I could think of. The pager extension was changed to set ui.interactive() by Brodie Rao in 80a1161bc3b5:

> pager: set ui.interactive=False when enabled
> 
> This stops interactive-only things like progress bars from showing up
> inside the pager.

An example of the combined effect of my two patches is attached below.

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qseries-before.png
Type: image/png
Size: 5076 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100415/91f5d291/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qseries-after.png
Type: image/png
Size: 5151 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100415/91f5d291/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100415/91f5d291/attachment.bin>


More information about the Mercurial-devel mailing list