Show More
@@ -1435,7 +1435,6 b' def diff(repo, node1=None, node2=None, m' | |||
|
1435 | 1435 | copy = {} |
|
1436 | 1436 | if opts.git or opts.upgrade: |
|
1437 | 1437 | copy = copies.copies(repo, ctx1, ctx2, repo[nullid])[0] |
|
1438 | copy = copy.copy() | |
|
1439 | 1438 | |
|
1440 | 1439 | difffn = lambda opts, losedata: trydiff(repo, revs, ctx1, ctx2, |
|
1441 | 1440 | modified, added, removed, copy, getfilectx, opts, losedata) |
@@ -1517,9 +1516,10 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||
|
1517 | 1516 | elif f in removed: |
|
1518 | 1517 | if opts.git: |
|
1519 | 1518 | # have we already reported a copy above? |
|
1520 |
if f in copy and copy[f] in added |
|
|
1521 |
|
|
|
1522 |
|
|
|
1519 | if ((f in copy and copy[f] in added | |
|
1520 | and copyto[copy[f]] == f) or | |
|
1521 | (f in copyto and copyto[f] in added | |
|
1522 | and copy[copyto[f]] == f)): | |
|
1523 | 1523 | dodiff = False |
|
1524 | 1524 | else: |
|
1525 | 1525 | header.append('deleted file mode %s\n' % |
General Comments 0
You need to be logged in to leave comments.
Login now