Show More
@@ -41,8 +41,12 b' def getfilectx(repo, memctx, f):' | |||
|
41 | 41 | return context.memfilectx(repo, f, data, 'l' in flags, 'x' in flags) |
|
42 | 42 | |
|
43 | 43 | ctxa = repo.changectx(0) |
|
44 | ctxb = context.memctx(repo, [ctxa.node(), None], | |
|
45 | "test diff", | |
|
46 | ["foo"], getfilectx) | |
|
44 | ctxb = context.memctx(repo, [ctxa.node(), None], "test diff", ["foo"], | |
|
45 | getfilectx, ctxa.user(), ctxa.date()) | |
|
47 | 46 | |
|
48 | 47 | print ctxb.status(ctxa) |
|
48 | ||
|
49 | # test performing a diff on a memctx | |
|
50 | ||
|
51 | for d in ctxb.diff(ctxa, git=True): | |
|
52 | print d |
General Comments 0
You need to be logged in to leave comments.
Login now