~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Martin Pool
  • Date: 2010-01-14 07:34:37 UTC
  • mto: (4634.119.8 2.0)
  • mto: This revision was merged to the branch mainline in revision 4966.
  • Revision ID: mbp@sourcefrog.net-20100114073437-xbj2g72jgv7k4ch4
Warn about inventory-delta streams when encoding for the network

Show diffs side-by-side

added added

removed removed

Lines of Context:
4284
4284
                    self._extract_and_insert_inventories(
4285
4285
                        substream, src_serializer)
4286
4286
            elif substream_type == 'inventory-deltas':
 
4287
                ui.ui_factory.warn_cross_format_fetch(src_format,
 
4288
                    self.target_repo._format)
4287
4289
                self._extract_and_insert_inventory_deltas(
4288
4290
                    substream, src_serializer)
4289
4291
            elif substream_type == 'chk_bytes':
4595
4597
        # convert on the target, so we need to put bytes-on-the-wire that can
4596
4598
        # be converted.  That means inventory deltas (if the remote is <1.19,
4597
4599
        # RemoteStreamSink will fallback to VFS to insert the deltas).
4598
 
        # 
4599
 
        # See <https://launchpad.net/bugs/456077> asking for a warning here
4600
 
        #
4601
 
        # Note that for the smart server this runs on the server, so for ssh
4602
 
        # it will be sent back over stderr, and for tcp and http it will
4603
 
        # probably be lost.
4604
 
        ui.ui_factory.warn_cross_format_fetch(self.from_repository._format,
4605
 
            self.to_format)
4606
4600
        yield ('inventory-deltas',
4607
4601
           self._stream_invs_as_deltas(revision_ids,
4608
4602
                                       delta_versus_null=delta_versus_null))