Show More
@@ -678,6 +678,9 b' def getunbundler(ui, fp, magicstring=Non' | |||||
678 | magicstring = changegroup.readexactly(fp, 4) |
|
678 | magicstring = changegroup.readexactly(fp, 4) | |
679 | magic, version = magicstring[0:2], magicstring[2:4] |
|
679 | magic, version = magicstring[0:2], magicstring[2:4] | |
680 | if magic != 'HG': |
|
680 | if magic != 'HG': | |
|
681 | ui.debug( | |||
|
682 | "error: invalid magic: %r (version %r), should be 'HG'\n" | |||
|
683 | % (magic, version)) | |||
681 | raise error.Abort(_('not a Mercurial bundle')) |
|
684 | raise error.Abort(_('not a Mercurial bundle')) | |
682 | unbundlerclass = formatmap.get(version) |
|
685 | unbundlerclass = formatmap.get(version) | |
683 | if unbundlerclass is None: |
|
686 | if unbundlerclass is None: |
General Comments 0
You need to be logged in to leave comments.
Login now