Mercurial > hg
comparison mercurial/metadata.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 493034cc3265 |
children | ca7bde5dbafb |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
431 # d1 nor d2, we won't iterate on it ever. | 431 # d1 nor d2, we won't iterate on it ever. |
432 | 432 |
433 # Iteration over d1 content will deal with all cases, but the one in the | 433 # Iteration over d1 content will deal with all cases, but the one in the |
434 # first column of the table. | 434 # first column of the table. |
435 for filename, d1 in diff_p1.items(): | 435 for filename, d1 in diff_p1.items(): |
436 | |
436 d2 = diff_p2.pop(filename, None) | 437 d2 = diff_p2.pop(filename, None) |
437 | 438 |
438 if d2 is None: | 439 if d2 is None: |
439 # this deal with the first line of the table. | 440 # this deal with the first line of the table. |
440 _process_other_unchanged(md, mas, filename, d1) | 441 _process_other_unchanged(md, mas, filename, d1) |
441 else: | 442 else: |
443 | |
442 if d1[0][0] is None and d2[0][0] is None: | 444 if d1[0][0] is None and d2[0][0] is None: |
443 # case 🄼 — both deleted the file. | 445 # case 🄼 — both deleted the file. |
444 md.mark_added(filename) | 446 md.mark_added(filename) |
445 copy_candidates.append(filename) | 447 copy_candidates.append(filename) |
446 elif d1[1][0] is None and d2[1][0] is None: | 448 elif d1[1][0] is None and d2[1][0] is None: |