Commit 3ca56d3
committed
Implemented correct fix:
- kept nodes having dirname/filename
+ the repo-relative path is reconstructed from the node names
- paths are reconstructed by joining dir + child path when needed
- write_commit_entries deletes removed dirs from `dir_hash_db` when they're removed
+ tree lookups used this so they'd return stale entries
+ **cache lookup bug**1 parent e6cbb61 commit 3ca56d3
File tree
2 files changed
+48
-18
lines changed- crates/lib/src
- core/v_latest
- repositories/commits
2 files changed
+48
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 730 | + | |
740 | 731 | | |
741 | 732 | | |
742 | | - | |
| 733 | + | |
743 | 734 | | |
744 | 735 | | |
745 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
| 650 | + | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
652 | 675 | | |
653 | 676 | | |
654 | 677 | | |
655 | 678 | | |
656 | 679 | | |
657 | | - | |
| 680 | + | |
658 | 681 | | |
659 | 682 | | |
660 | | - | |
661 | | - | |
| 683 | + | |
| 684 | + | |
662 | 685 | | |
663 | 686 | | |
664 | 687 | | |
665 | 688 | | |
666 | 689 | | |
667 | | - | |
| 690 | + | |
668 | 691 | | |
669 | 692 | | |
670 | 693 | | |
671 | | - | |
| 694 | + | |
672 | 695 | | |
673 | 696 | | |
674 | 697 | | |
| |||
829 | 852 | | |
830 | 853 | | |
831 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
832 | 871 | | |
833 | 872 | | |
834 | 873 | | |
| |||
0 commit comments