mercurial/exchange.py
changeset 21064 4d9d490d7bbe
parent 21063 7ca4f2049d3b
child 21065 f9a9a6d63e89
equal deleted inserted replaced
21063:7ca4f2049d3b 21064:4d9d490d7bbe
     9 from node import hex, nullid
     9 from node import hex, nullid
    10 import errno
    10 import errno
    11 import util, scmutil, changegroup, base85
    11 import util, scmutil, changegroup, base85
    12 import discovery, phases, obsolete, bookmarks, bundle2
    12 import discovery, phases, obsolete, bookmarks, bundle2
    13 
    13 
    14 def readbundle(fh, fname, vfs=None):
    14 def readbundle(ui, fh, fname, vfs=None):
    15     header = changegroup.readexactly(fh, 6)
    15     header = changegroup.readexactly(fh, 6)
    16 
    16 
    17     if not fname:
    17     if not fname:
    18         fname = "stream"
    18         fname = "stream"
    19         if not header.startswith('HG') and header.startswith('\0'):
    19         if not header.startswith('HG') and header.startswith('\0'):