# HG changeset patch # User Yuya Nishihara # Date 2018-07-06 12:31:04 # Node ID c6398fc2fc9c8709f3c43afbae990cbaee4116de # Parent 4bc96c755c176bf37b882c24d70e66f6c62a233b synthrepo: simply use the ui passed as a function argument diff --git a/contrib/synthrepo.py b/contrib/synthrepo.py --- a/contrib/synthrepo.py +++ b/contrib/synthrepo.py @@ -196,7 +196,7 @@ def analyze(ui, repo, *revs, **opts): if lastctx.rev() != nullrev: timedelta = ctx.date()[0] - lastctx.date()[0] interarrival[roundto(timedelta, 300)] += 1 - diffopts = diffutil.diffopts(ctx._repo.ui, {'git': True}) + diffopts = diffutil.diffopts(ui, {'git': True}) diff = sum((d.splitlines() for d in ctx.diff(pctx, opts=diffopts)), []) fileadds, diradds, fileremoves, filechanges = 0, 0, 0, 0