##// END OF EJS Templates
bundle2: directly feed part to readbundle...
Pierre-Yves David -
r21020:5041163e default
parent child Browse files
Show More
@@ -144,7 +144,6 b' import util'
144 144 import struct
145 145 import urllib
146 146 import string
147 import StringIO
148 147
149 148 import changegroup
150 149 from i18n import _
@@ -640,9 +639,7 b' def handlechangegroup(op, inpart):'
640 639 # we need to make sure we trigger the creation of a transaction object used
641 640 # for the whole processing scope.
642 641 op.gettransaction()
643 data = StringIO.StringIO(inpart.read())
644 data.seek(0)
645 cg = changegroup.readbundle(data, 'bundle2part')
642 cg = changegroup.readbundle(inpart, 'bundle2part')
646 643 ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
647 644 op.records.add('changegroup', {'return': ret})
648 645 if op.reply is not None:
General Comments 0
You need to be logged in to leave comments. Login now