Show More
@@ -10,6 +10,7 b' from mercurial import (' | |||
|
10 | 10 | scmutil, |
|
11 | 11 | ui as uimod, |
|
12 | 12 | ) |
|
13 | from mercurial.utils import diffutil | |
|
13 | 14 | |
|
14 | 15 | print_ = print |
|
15 | 16 | def print(*args, **kwargs): |
@@ -76,8 +77,8 b' ctxb = context.memctx(repo, [ctxa.node()' | |||
|
76 | 77 | print(ctxb.status(ctxa)) |
|
77 | 78 | |
|
78 | 79 | # test performing a diff on a memctx |
|
79 | ||
|
80 |
for d in ctxb.diff(ctxa, opts= |
|
|
80 | diffopts = diffutil.diffopts(repo.ui, {'git': True}) | |
|
81 | for d in ctxb.diff(ctxa, opts=diffopts): | |
|
81 | 82 | printb(d, end=b'') |
|
82 | 83 | |
|
83 | 84 | # test safeness and correctness of "ctx.status()" |
General Comments 0
You need to be logged in to leave comments.
Login now