/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-06-21 21:35:06 UTC
  • mfrom: (1803 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1804.
  • Revision ID: abentley@panoramicfeedback.com-20060621213506-e58c1f9dc1a6d6d2
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    return '<unknown>'
41
41
 
42
42
 
43
 
def read(f):
 
43
def read_bundle(f):
44
44
    """Read in a bundle from a filelike object.
45
45
 
46
46
    :param f: A file-like object
58
58
            raise errors.BundleNotSupported(version, 'old format bundles not supported')
59
59
 
60
60
    if version is None:
61
 
        raise errors.NoBundleFound(_get_filename(f))
 
61
        raise errors.NotABundle('Did not find an opening header')
62
62
 
63
63
    # Now we have a version, to figure out how to read the bundle 
64
64
    if not _serializers.has_key(version):