Mercurial > public > mercurial-scm > hg
diff hgext/hgk.py @ 23451:5fb1fc2e1281
hgk: don't honor whitespace and format-changing diffopts
The diff-tree command is a plumbing command in Git, which means it is expected
to have a stable output format. Ensure that our output is stable too.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 18 Nov 2014 21:38:19 -0800 |
parents | 41c03b7592ed |
children | 0ecc1e42ff3f |
line wrap: on
line diff
--- a/hgext/hgk.py Tue Nov 18 17:36:24 2014 -0800 +++ b/hgext/hgk.py Tue Nov 18 21:38:19 2014 -0800 @@ -95,8 +95,10 @@ if opts['pretty']: catcommit(ui, repo, node2, "") m = scmutil.match(repo[node1], files) + diffopts = patch.difffeatureopts(ui) + diffopts.git = True chunks = patch.diff(repo, node1, node2, match=m, - opts=patch.diffopts(ui, {'git': True})) + opts=diffopts) for chunk in chunks: ui.write(chunk) else: