equal
deleted
inserted
replaced
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'): |