tests/test-context.py
changeset 21837 61b333b982ea
parent 21836 232038a05fdb
child 23060 4eaea93b3e5b
--- 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