# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1271350379 -7200 # Node ID 61cd6653f8463e1afc1a29d9913765e9e06d6bcb # Parent ede19417c3c45c24f79d3c6a55174e876beba398 diffstat: use ui.plain() instead of ui.interactive() Previously, a default width of 80 is used for non-interactive sessions. This behaviour was introduced before HGPLAIN was supported. diff -r ede19417c3c4 -r 61cd6653f846 mercurial/commands.py --- a/mercurial/commands.py Sat Apr 17 15:35:34 2010 +0200 +++ b/mercurial/commands.py Thu Apr 15 18:52:59 2010 +0200 @@ -1158,7 +1158,9 @@ m = cmdutil.match(repo, pats, opts) it = patch.diff(repo, node1, node2, match=m, opts=diffopts) if stat: - width = ui.interactive() and util.termwidth() or 80 + width = 80 + if not ui.plain(): + width = util.termwidth() ui.write(patch.diffstat(util.iterlines(it), width=width, git=diffopts.git)) else: