Show More
@@ -761,9 +761,14 b' class cg1packer(object):' | |||
|
761 | 761 | # Callback for the manifest, used to collect linkrevs for filelog |
|
762 | 762 | # revisions. |
|
763 | 763 | # Returns the linkrev node (collected in lookupcl). |
|
764 | def makelookupmflinknode(dir): | |
|
764 | 765 | if fastpathlinkrev: |
|
765 | lookupmflinknode = mfs.__getitem__ | |
|
766 | else: | |
|
766 | assert not dir | |
|
767 | return mfs.__getitem__ | |
|
768 | ||
|
769 | if dir: | |
|
770 | return tmfnodes[dir].get | |
|
771 | ||
|
767 | 772 | def lookupmflinknode(x): |
|
768 | 773 | """Callback for looking up the linknode for manifests. |
|
769 | 774 | |
@@ -818,15 +823,17 b' class cg1packer(object):' | |||
|
818 | 823 | if clrevorder[clnode] < clrevorder[tmfclnode]: |
|
819 | 824 | tmfclnodes[n] = clnode |
|
820 | 825 | return clnode |
|
826 | return lookupmflinknode | |
|
821 | 827 | |
|
822 | 828 | mfnodes = self.prune(ml, mfs, commonrevs) |
|
823 | 829 | size = 0 |
|
824 | for x in self._packmanifests('', mfnodes, lookupmflinknode): | |
|
830 | for x in self._packmanifests('', mfnodes, makelookupmflinknode('')): | |
|
825 | 831 | size += len(x) |
|
826 | 832 | yield x |
|
827 | 833 | for dir, nodes in tmfnodes.iteritems(): |
|
828 | 834 | prunednodes = self.prune(ml.dirlog(dir), nodes, commonrevs) |
|
829 |
for x in self._packmanifests(dir, prunednodes, |
|
|
835 | for x in self._packmanifests(dir, prunednodes, | |
|
836 | makelookupmflinknode(dir)): | |
|
830 | 837 | size += len(x) |
|
831 | 838 | yield x |
|
832 | 839 | self._verbosenote(_('%8.i (manifests)\n') % size) |
General Comments 0
You need to be logged in to leave comments.
Login now