diff -r 9b99f158348a -r 7d17794f08a9 mercurial/commands.py --- a/mercurial/commands.py Sun Oct 25 02:52:36 2009 +0200 +++ b/mercurial/commands.py Sun Oct 25 02:53:33 2009 +0200 @@ -1098,12 +1098,14 @@ if stat: opts['unified'] = '0' + diffopts = patch.diffopts(ui, opts) m = cmdutil.match(repo, pats, opts) - it = patch.diff(repo, node1, node2, match=m, opts=patch.diffopts(ui, opts)) + it = patch.diff(repo, node1, node2, match=m, opts=diffopts) if stat: width = ui.interactive() and util.termwidth() or 80 - ui.write(patch.diffstat(util.iterlines(it), width=width)) + ui.write(patch.diffstat(util.iterlines(it), width=width, + git=diffopts.git)) else: for chunk in it: ui.write(chunk)