~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Robert Collins
  • Date: 2009-02-15 21:24:20 UTC
  • mto: (4022.1.4 fetch.RemoteSink)
  • mto: This revision was merged to the branch mainline in revision 4026.
  • Revision ID: robertc@robertcollins.net-20090215212420-2h3c8fdf0w2h6e0v
Change the signature on VersionedFiles adapters to allow less typing and more flexability inside adapters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
                    adapter_factory = adapter_registry.get(adapter_key)
373
373
                    adapter = adapter_factory(self)
374
374
                    adapters[adapter_key] = adapter
375
 
                lines = split_lines(adapter.get_bytes(
376
 
                    record, record.get_bytes_as(record.storage_kind)))
 
375
                lines = split_lines(adapter.get_bytes(record))
377
376
                try:
378
377
                    self.add_lines(record.key[0], parents, lines)
379
378
                except RevisionAlreadyPresent: