/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/tests/test_remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-18 23:27:40 UTC
  • mfrom: (4599.4.45 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090818232740-8q7ms2nntw9ckyvq
(robertc) Change the default format to 2a. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
661
661
        network_name = reference_format.network_name()
662
662
        client.add_expected_call(
663
663
            'BzrDir.create_repository', ('quack/',
664
 
                'Bazaar pack repository format 1 (needs bzr 0.92)\n', 'False'),
665
 
            'success', ('ok', 'no', 'no', 'no', network_name))
 
664
                'Bazaar repository format 2a (needs bzr 1.16 or later)\n',
 
665
                'False'),
 
666
            'success', ('ok', 'yes', 'yes', 'yes', network_name))
666
667
        a_bzrdir = RemoteBzrDir(transport, remote.RemoteBzrDirFormat(),
667
668
            _client=client)
668
669
        repo = a_bzrdir.create_repository()
670
671
        self.assertIsInstance(repo, remote.RemoteRepository)
671
672
        # its format should have the settings from the response
672
673
        format = repo._format
673
 
        self.assertFalse(format.rich_root_data)
674
 
        self.assertFalse(format.supports_tree_reference)
675
 
        self.assertFalse(format.supports_external_lookups)
 
674
        self.assertTrue(format.rich_root_data)
 
675
        self.assertTrue(format.supports_tree_reference)
 
676
        self.assertTrue(format.supports_external_lookups)
676
677
        self.assertEqual(network_name, format.network_name())
677
678
 
678
679
 
2354
2355
        """
2355
2356
        # Define a stream using generators so that it isn't rewindable.
2356
2357
        inv = inventory.Inventory(revision_id='rev1')
 
2358
        inv.root.revision = 'rev1'
2357
2359
        def stream_with_inv_delta():
2358
2360
            yield ('inventories', inventories_substream())
2359
2361
            yield ('inventory-deltas', inventory_delta_substream())