Show More
@@ -41,8 +41,12 b' def getfilectx(repo, memctx, f):' | |||||
41 | return context.memfilectx(repo, f, data, 'l' in flags, 'x' in flags) |
|
41 | return context.memfilectx(repo, f, data, 'l' in flags, 'x' in flags) | |
42 |
|
42 | |||
43 | ctxa = repo.changectx(0) |
|
43 | ctxa = repo.changectx(0) | |
44 | ctxb = context.memctx(repo, [ctxa.node(), None], |
|
44 | ctxb = context.memctx(repo, [ctxa.node(), None], "test diff", ["foo"], | |
45 | "test diff", |
|
45 | getfilectx, ctxa.user(), ctxa.date()) | |
46 | ["foo"], getfilectx) |
|
|||
47 |
|
46 | |||
48 | print ctxb.status(ctxa) |
|
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