diff tests/test-context.py @ 38523:4455e5d4d59c

context: explicitly take diffopts in `context.diff` (API) To provide a proper replacement for the `patch.diff(?)` function, the `context.diff(?)` method needs to be able to take more parameters. To distinguish the diff options from the new other arguments, we upgrade the diff options to its own explicit argument.
author Boris Feld <boris.feld@octobus.net>
date Tue, 22 May 2018 15:02:52 +0200
parents 0d95ad9fc5f4
children b9724978633e
line wrap: on
line diff
--- a/tests/test-context.py	Sun Jul 01 01:00:39 2018 +0530
+++ b/tests/test-context.py	Tue May 22 15:02:52 2018 +0200
@@ -77,7 +77,7 @@
 
 # test performing a diff on a memctx
 
-for d in ctxb.diff(ctxa, git=True):
+for d in ctxb.diff(ctxa, opts={'git': True}):
     printb(d, end=b'')
 
 # test safeness and correctness of "ctx.status()"