Mercurial > public > mercurial-scm > hg-stable
diff contrib/synthrepo.py @ 38588: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 | c6398fc2fc9c |
children | 1c93e0237a24 |
line wrap: on
line diff
--- a/contrib/synthrepo.py Fri Jul 06 21:38:33 2018 +0900 +++ b/contrib/synthrepo.py Fri Jul 06 21:41:36 2018 +0900 @@ -196,7 +196,7 @@ if lastctx.rev() != nullrev: timedelta = ctx.date()[0] - lastctx.date()[0] interarrival[roundto(timedelta, 300)] += 1 - diffopts = diffutil.diffopts(ui, {'git': True}) + diffopts = diffutil.diffallopts(ui, {'git': True}) diff = sum((d.splitlines() for d in ctx.diff(pctx, opts=diffopts)), []) fileadds, diradds, fileremoves, filechanges = 0, 0, 0, 0