diff -r 232038a05fdb -r 61b333b982ea tests/test-context.py --- a/tests/test-context.py Fri Jun 13 15:56:11 2014 -0700 +++ b/tests/test-context.py Fri Jun 13 15:59:18 2014 -0700 @@ -41,8 +41,12 @@ return context.memfilectx(repo, f, data, 'l' in flags, 'x' in flags) ctxa = repo.changectx(0) -ctxb = context.memctx(repo, [ctxa.node(), None], - "test diff", - ["foo"], getfilectx) +ctxb = context.memctx(repo, [ctxa.node(), None], "test diff", ["foo"], + getfilectx, ctxa.user(), ctxa.date()) print ctxb.status(ctxa) + +# test performing a diff on a memctx + +for d in ctxb.diff(ctxa, git=True): + print d