/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

Merge bzr.dev into cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
41
41
    osutils,
42
42
    revision as _mod_revision,
43
43
    symbol_versioning,
 
44
    trace,
44
45
    tsort,
45
46
    ui,
46
47
    versionedfile,
4008
4009
        """See InterRepository.fetch()."""
4009
4010
        if fetch_spec is not None:
4010
4011
            raise AssertionError("Not implemented yet...")
 
4012
        # See <https://launchpad.net/bugs/456077> asking for a warning here
 
4013
        #
 
4014
        # nb this is only active for local-local fetches; other things using
 
4015
        # streaming.
 
4016
        ui.ui_factory.warn_cross_format_fetch(self.source._format,
 
4017
            self.target._format)
4011
4018
        if (not self.source.supports_rich_root()
4012
4019
            and self.target.supports_rich_root()):
4013
4020
            self._converting_to_rich_root = True
4306
4313
                    self._extract_and_insert_inventories(
4307
4314
                        substream, src_serializer)
4308
4315
            elif substream_type == 'inventory-deltas':
 
4316
                ui.ui_factory.warn_cross_format_fetch(src_format,
 
4317
                    self.target_repo._format)
4309
4318
                self._extract_and_insert_inventory_deltas(
4310
4319
                    substream, src_serializer)
4311
4320
            elif substream_type == 'chk_bytes':
4616
4625
 
4617
4626
    def _get_convertable_inventory_stream(self, revision_ids,
4618
4627
                                          delta_versus_null=False):
4619
 
        # The source is using CHKs, but the target either doesn't or it has a
4620
 
        # different serializer.  The StreamSink code expects to be able to
 
4628
        # The two formats are sufficiently different that there is no fast
 
4629
        # path, so we need to send just inventorydeltas, which any
 
4630
        # sufficiently modern client can insert into any repository.
 
4631
        # The StreamSink code expects to be able to
4621
4632
        # convert on the target, so we need to put bytes-on-the-wire that can
4622
4633
        # be converted.  That means inventory deltas (if the remote is <1.19,
4623
4634
        # RemoteStreamSink will fallback to VFS to insert the deltas).