Mercurial > public > mercurial-scm > hg
diff mercurial/templatekw.py @ 38587:b62000a28812
diffutil: remove diffopts() in favor of diffallopts()
patch.diffopts() exists only for backward compatibility. We don't need it
in new module.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 06 Jul 2018 21:41:36 +0900 |
parents | 4bc96c755c17 |
children | 1c93e0237a24 |
line wrap: on
line diff
--- a/mercurial/templatekw.py Fri Jul 06 21:38:33 2018 +0900 +++ b/mercurial/templatekw.py Fri Jul 06 21:41:36 2018 +0900 @@ -265,7 +265,7 @@ """ ui = context.resource(mapping, 'ui') ctx = context.resource(mapping, 'ctx') - diffopts = diffutil.diffopts(ui, {'noprefix': False}) + diffopts = diffutil.diffallopts(ui, {'noprefix': False}) diff = ctx.diff(opts=diffopts) stats = patch.diffstatdata(util.iterlines(diff)) maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats)