Show More
@@ -471,8 +471,9 def diff(repo, node1=None, node2=None, f | |||||
471 | r1, r2 = map(repo.changelog.rev, (n1, n2)) |
|
471 | r1, r2 = map(repo.changelog.rev, (n1, n2)) | |
472 | src = None |
|
472 | src = None | |
473 | while r2 > r1: |
|
473 | while r2 > r1: | |
474 |
cl = getchangelog(n2) |
|
474 | cl = getchangelog(n2) | |
475 | m = getmanifest(cl) |
|
475 | if f in cl[3]: | |
|
476 | m = getmanifest(cl[0]) | |||
476 | try: |
|
477 | try: | |
477 | src = getfile(f).renamed(m[f]) |
|
478 | src = getfile(f).renamed(m[f]) | |
478 | except KeyError: |
|
479 | except KeyError: |
@@ -60,3 +60,16 rm binfile.bin | |||||
60 | hg import -mfoo b.diff |
|
60 | hg import -mfoo b.diff | |
61 | cmp binfile.bin $TESTDIR/binfile.bin |
|
61 | cmp binfile.bin $TESTDIR/binfile.bin | |
62 |
|
62 | |||
|
63 | echo | |||
|
64 | echo '% diff across many revisions' | |||
|
65 | hg mv dst dst2 | |||
|
66 | hg ci -m 'mv dst dst2' -d '0 0' | |||
|
67 | ||||
|
68 | echo >> start | |||
|
69 | hg ci -m 'change start' -d '0 0' | |||
|
70 | ||||
|
71 | hg revert -r -2 start | |||
|
72 | hg mv dst2 dst3 | |||
|
73 | hg ci -m 'mv dst2 dst3; revert start' -d '0 0' | |||
|
74 | ||||
|
75 | hg diff --git -r 9:11 |
General Comments 0
You need to be logged in to leave comments.
Login now