Show More
@@ -2273,6 +2273,11 b' def diff(repo, node1=None, node2=None, m' | |||||
2273 | modified = sorted(modifiedset) |
|
2273 | modified = sorted(modifiedset) | |
2274 | added = sorted(addedset) |
|
2274 | added = sorted(addedset) | |
2275 | removed = sorted(removedset) |
|
2275 | removed = sorted(removedset) | |
|
2276 | for dst, src in copy.items(): | |||
|
2277 | if src not in ctx1: | |||
|
2278 | # Files merged in during a merge and then copied/renamed are | |||
|
2279 | # reported as copies. We want to show them in the diff as additions. | |||
|
2280 | del copy[dst] | |||
2276 |
|
2281 | |||
2277 | def difffn(opts, losedata): |
|
2282 | def difffn(opts, losedata): | |
2278 | return trydiff(repo, revs, ctx1, ctx2, modified, added, removed, |
|
2283 | return trydiff(repo, revs, ctx1, ctx2, modified, added, removed, |
General Comments 0
You need to be logged in to leave comments.
Login now