Show More
@@ -399,9 +399,11 class unbundle20(unpackermixin): | |||
|
399 | 399 | |
|
400 | 400 | (this will eventually yield parts)""" |
|
401 | 401 | |
|
402 | def __init__(self, ui, fp): | |
|
402 | def __init__(self, ui, fp, header=None): | |
|
403 | """If header is specified, we do not read it out of the stream.""" | |
|
403 | 404 | self.ui = ui |
|
404 | 405 | super(unbundle20, self).__init__(fp) |
|
406 | if header is None: | |
|
405 | 407 | header = self._readexact(4) |
|
406 | 408 | magic, version = header[0:2], header[2:4] |
|
407 | 409 | if magic != 'HG': |
General Comments 0
You need to be logged in to leave comments.
Login now