##// END OF EJS Templates
changegroup: remove dictionary creation from deltachunk...
Durham Goode -
r34295:05131c96 default
parent child Browse files
Show More
@@ -188,8 +188,7 b' class cg1unpacker(object):'
188 188 header = struct.unpack(self.deltaheader, headerdata)
189 189 delta = readexactly(self._stream, l - self.deltaheadersize)
190 190 node, p1, p2, deltabase, cs, flags = self._deltaheader(header, prevnode)
191 return {'node': node, 'p1': p1, 'p2': p2, 'cs': cs,
192 'deltabase': deltabase, 'delta': delta, 'flags': flags}
191 return (node, p1, p2, cs, deltabase, delta, flags)
193 192
194 193 def getchunks(self):
195 194 """returns all the chunks contains in the bundle
@@ -438,17 +437,9 b' class cg1unpacker(object):'
438 437 """
439 438 chain = None
440 439 for chunkdata in iter(lambda: self.deltachunk(chain), {}):
441 node = chunkdata['node']
442 p1 = chunkdata['p1']
443 p2 = chunkdata['p2']
444 cs = chunkdata['cs']
445 deltabase = chunkdata['deltabase']
446 delta = chunkdata['delta']
447 flags = chunkdata['flags']
448
449 chain = node
450
451 yield (node, p1, p2, cs, deltabase, delta, flags)
440 # Chunkdata: (node, p1, p2, cs, deltabase, delta, flags)
441 yield chunkdata
442 chain = chunkdata[0]
452 443
453 444 class cg2unpacker(cg1unpacker):
454 445 """Unpacker for cg2 streams.
General Comments 0
You need to be logged in to leave comments. Login now