##// END OF EJS Templates
diff: avoid going from contexts to nodes and back...
Augie Fackler -
r45341:8c0c1161 default draft
parent child Browse files
Show More
@@ -2492,7 +2492,11 b' def diff(ui, repo, *pats, **opts):'
2492 node1, node2 = ctx1.node(), ctx2.node()
2492 node1, node2 = ctx1.node(), ctx2.node()
2493
2493
2494 if reverse:
2494 if reverse:
2495 node1, node2 = node2, node1
2495 ctxleft = ctx2
2496 ctxright = ctx1
2497 else:
2498 ctxleft = ctx1
2499 ctxright = ctx2
2496
2500
2497 diffopts = patch.diffallopts(ui, opts)
2501 diffopts = patch.diffallopts(ui, opts)
2498 m = scmutil.match(ctx2, pats, opts)
2502 m = scmutil.match(ctx2, pats, opts)
@@ -2502,8 +2506,8 b' def diff(ui, repo, *pats, **opts):'
2502 ui,
2506 ui,
2503 repo,
2507 repo,
2504 diffopts,
2508 diffopts,
2505 repo[node1],
2509 ctxleft,
2506 repo[node2],
2510 ctxright,
2507 m,
2511 m,
2508 stat=stat,
2512 stat=stat,
2509 listsubrepos=opts.get(b'subrepos'),
2513 listsubrepos=opts.get(b'subrepos'),
General Comments 0
You need to be logged in to leave comments. Login now