##// END OF EJS Templates
changegroup: move non-pruning of non-ellipsis manifests to _prunemanifests()...
Martin von Zweigbergk -
r41933:1c1c4ef8 default
parent child Browse files
Show More
@@ -1073,11 +1073,6 b' class cgpacker(object):'
1073 # because of narrow clones). Do this even for the root
1073 # because of narrow clones). Do this even for the root
1074 # directory (tree=='')
1074 # directory (tree=='')
1075 prunednodes = []
1075 prunednodes = []
1076 elif not self._ellipses:
1077 # In non-ellipses case and large repositories, it is better to
1078 # prevent calling of store.rev and store.linkrev on a lot of
1079 # nodes as compared to sending some extra data
1080 prunednodes = nodes.copy()
1081 else:
1076 else:
1082 # Avoid sending any manifest nodes we can prove the
1077 # Avoid sending any manifest nodes we can prove the
1083 # client already has by checking linkrevs. See the
1078 # client already has by checking linkrevs. See the
@@ -1110,6 +1105,11 b' class cgpacker(object):'
1110 yield tree, []
1105 yield tree, []
1111
1106
1112 def _prunemanifests(self, store, nodes, commonrevs):
1107 def _prunemanifests(self, store, nodes, commonrevs):
1108 if not self._ellipses:
1109 # In non-ellipses case and large repositories, it is better to
1110 # prevent calling of store.rev and store.linkrev on a lot of
1111 # nodes as compared to sending some extra data
1112 return nodes.copy()
1113 # This is split out as a separate method to allow filtering
1113 # This is split out as a separate method to allow filtering
1114 # commonrevs in extension code.
1114 # commonrevs in extension code.
1115 #
1115 #
General Comments 0
You need to be logged in to leave comments. Login now