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