##// END OF EJS Templates
narrow: build the known set of nodes only when ellipses is enabled...
Pulkit Goyal -
r39560:294c5714 default
parent child Browse files
Show More
@@ -180,13 +180,16 b' def pullbundle2extraprepare(orig, pullop'
180 180 kwargs['oldexcludepats'] = exclude
181 181 kwargs['includepats'] = include
182 182 kwargs['excludepats'] = exclude
183 # calculate known nodes only in ellipses cases because in non-ellipses cases
184 # we have all the nodes
185 if narrowbundle2.ELLIPSESCAP in pullop.remote.capabilities():
183 186 kwargs['known'] = [node.hex(ctx.node()) for ctx in
184 187 repo.set('::%ln', pullop.common)
185 188 if ctx.node() != node.nullid]
186 189 if not kwargs['known']:
187 # Mercurial serialized an empty list as '' and deserializes it as
188 # [''], so delete it instead to avoid handling the empty string on the
189 # server.
190 # Mercurial serializes an empty list as '' and deserializes it as
191 # [''], so delete it instead to avoid handling the empty string on
192 # the server.
190 193 del kwargs['known']
191 194
192 195 extensions.wrapfunction(exchange,'_pullbundle2extraprepare',
General Comments 0
You need to be logged in to leave comments. Login now