[PATCH] diffstat: use ui.plain() instead of ui.interactive()

Alexander Solovyov piranha at piranha.org.ua
Thu Apr 15 14:00:18 CDT 2010


On 2010-04-15, Dan Villiom Podlaski Christiansen wrote:

> -        width = ui.interactive() and util.termwidth() or 80
> +        if not ui.plain():
> +            width = util.termwidth()
> +        else:
> +            width = 80

Hm, why not just change ui.interactive() to ui.plain()? :-)

-- 
Alexander


More information about the Mercurial-devel mailing list