/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/repository.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-13 06:24:32 UTC
  • mto: (2535.4.4 streaming-smart-fetch)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20070813062432-egj0ykxl4k3yuw5e
Tidy up more XXXs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
from bzrlib.store.versioned import VersionedFileStore
46
46
from bzrlib.store.text import TextStore
47
47
from bzrlib.testament import Testament
 
48
from bzrlib.util import bencode
48
49
 
49
50
""")
50
51
 
56
57
        zero_nine,
57
58
        )
58
59
from bzrlib.trace import mutter, note, warning
59
 
from bzrlib.util import bencode
60
60
 
61
61
 
62
62
# Old formats display a warning, but only once
400
400
                knit = self._revision_store.get_signature_file(
401
401
                    self.get_transaction())
402
402
            else:
403
 
                raise XXX
 
403
                raise RepositoryDataStreamError(
 
404
                    "Unrecognised data stream key '%s'" % (knit_name,))
404
405
            decoded_list = bencode.bdecode(bytes)
405
406
            format = decoded_list.pop(0)
406
407
            data_list = []
408
409
            for version, options, parents, some_bytes in decoded_list:
409
410
                data_list.append((version, options, len(some_bytes), parents))
410
411
                knit_bytes += some_bytes
411
 
            knit.insert_data_stream((format, data_list,
412
 
                StringIO(knit_bytes).read))
 
412
            knit.insert_data_stream(
 
413
                (format, data_list, StringIO(knit_bytes).read))
413
414
 
414
415
    @needs_read_lock
415
416
    def missing_revision_ids(self, other, revision_id=None):