changeset 38584:c6398fc2fc9c

synthrepo: simply use the ui passed as a function argument
author Yuya Nishihara <yuya@tcha.org>
date Fri, 06 Jul 2018 21:31:04 +0900
parents 4bc96c755c17
children 66eb74f9d87d
files contrib/synthrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/synthrepo.py	Fri Jul 06 21:29:05 2018 +0900
+++ b/contrib/synthrepo.py	Fri Jul 06 21:31:04 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(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