Show More
@@ -1754,7 +1754,6 b' class localrepository(repo.repository):' | |||||
1754 | # A function generating function that sets up the initial environment |
|
1754 | # A function generating function that sets up the initial environment | |
1755 | # the inner function. |
|
1755 | # the inner function. | |
1756 | def filenode_collector(changedfiles): |
|
1756 | def filenode_collector(changedfiles): | |
1757 | next_rev = [0] |
|
|||
1758 | # This gathers information from each manifestnode included in the |
|
1757 | # This gathers information from each manifestnode included in the | |
1759 | # changegroup about which filenodes the manifest node references |
|
1758 | # changegroup about which filenodes the manifest node references | |
1760 | # so we can include those in the changegroup too. |
|
1759 | # so we can include those in the changegroup too. | |
@@ -1764,8 +1763,8 b' class localrepository(repo.repository):' | |||||
1764 | # the first manifest that references it belongs to. |
|
1763 | # the first manifest that references it belongs to. | |
1765 | def collect_msng_filenodes(mnfstnode): |
|
1764 | def collect_msng_filenodes(mnfstnode): | |
1766 | r = mnfst.rev(mnfstnode) |
|
1765 | r = mnfst.rev(mnfstnode) | |
1767 |
if r |
|
1766 | if r - 1 in mnfst.parentrevs(r): | |
1768 | # If the last rev we looked at was the one just previous, |
|
1767 | # If the previous rev is one of the parents, | |
1769 | # we only need to see a diff. |
|
1768 | # we only need to see a diff. | |
1770 | deltamf = mnfst.readdelta(mnfstnode) |
|
1769 | deltamf = mnfst.readdelta(mnfstnode) | |
1771 | # For each line in the delta |
|
1770 | # For each line in the delta | |
@@ -1794,8 +1793,6 b' class localrepository(repo.repository):' | |||||
1794 | clnode = msng_mnfst_set[mnfstnode] |
|
1793 | clnode = msng_mnfst_set[mnfstnode] | |
1795 | ndset = msng_filenode_set.setdefault(f, {}) |
|
1794 | ndset = msng_filenode_set.setdefault(f, {}) | |
1796 | ndset.setdefault(fnode, clnode) |
|
1795 | ndset.setdefault(fnode, clnode) | |
1797 | # Remember the revision we hope to see next. |
|
|||
1798 | next_rev[0] = r + 1 |
|
|||
1799 | return collect_msng_filenodes |
|
1796 | return collect_msng_filenodes | |
1800 |
|
1797 | |||
1801 | # We have a list of filenodes we think we need for a file, lets remove |
|
1798 | # We have a list of filenodes we think we need for a file, lets remove |
General Comments 0
You need to be logged in to leave comments.
Login now