##// END OF EJS Templates
bundle2: now that we have a seek implementation, use it...
Eric Sumner -
r24047:731fa8e3 default
parent child Browse files
Show More
@@ -313,7 +313,7 b' def processbundle(repo, unbundler, trans'
313 except Exception, exc:
313 except Exception, exc:
314 for part in iterparts:
314 for part in iterparts:
315 # consume the bundle content
315 # consume the bundle content
316 part.read()
316 part.seek(0, 2)
317 # Small hack to let caller code distinguish exceptions from bundle2
317 # Small hack to let caller code distinguish exceptions from bundle2
318 # processing from processing the old format. This is mostly
318 # processing from processing the old format. This is mostly
319 # needed to handle different return codes to unbundle according to the
319 # needed to handle different return codes to unbundle according to the
@@ -365,7 +365,7 b' def _processpart(op, part):'
365 outpart.addparam('in-reply-to', str(part.id), mandatory=False)
365 outpart.addparam('in-reply-to', str(part.id), mandatory=False)
366 finally:
366 finally:
367 # consume the part content to not corrupt the stream.
367 # consume the part content to not corrupt the stream.
368 part.read()
368 part.seek(0, 2)
369
369
370
370
371 def decodecaps(blob):
371 def decodecaps(blob):
General Comments 0
You need to be logged in to leave comments. Login now