Show More
@@ -32,6 +32,8 b' def readbundle(ui, fh, fname, vfs=None):' | |||||
32 | if alg is None: |
|
32 | if alg is None: | |
33 | alg = changegroup.readexactly(fh, 2) |
|
33 | alg = changegroup.readexactly(fh, 2) | |
34 | return changegroup.unbundle10(fh, alg) |
|
34 | return changegroup.unbundle10(fh, alg) | |
|
35 | elif version == '20': | |||
|
36 | return bundle2.unbundle20(ui, fh, header=magic + version) | |||
35 | else: |
|
37 | else: | |
36 | raise util.Abort(_('%s: unknown bundle version %s') % (fname, version)) |
|
38 | raise util.Abort(_('%s: unknown bundle version %s') % (fname, version)) | |
37 |
|
39 |
General Comments 0
You need to be logged in to leave comments.
Login now