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