~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_info.py

  • Committer: Martin Pool
  • Date: 2007-02-06 06:27:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070206062724-a5uo1u27jxsal2t0
Moved old weave-based repository formats into bzrlib.repofmt.weaverepo.

Change help for --format to just say 'see help formats'

RepositoryFormat.register_metadir gains an optional parameter for the
module name containing the repository format, and lazily loads from there.

Disable test_interrepository_get_returns_correct_optimiser, because it
seems too brittle.

Remove InterWeaveRepo, these should now just be upgraded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
2
 
# -*- coding: utf-8 -*-
 
1
# Copyright (C) 2006, 2007 Canonical Ltd
3
2
#
4
3
# This program is free software; you can redistribute it and/or modify
5
4
# it under the terms of the GNU General Public License as published by
485
484
        self.assertEqual('', err)
486
485
 
487
486
    def test_info_shared_repository(self):
488
 
        format = bzrdir.format_registry.make_bzrdir('metaweave')
 
487
        format = bzrdir.format_registry.make_bzrdir('knit')
489
488
        transport = self.get_transport()
490
489
 
491
490
        # Create shared repository
781
780
        self.assertEqual('', err)
782
781
 
783
782
    def test_info_shared_repository_with_trees(self):
784
 
        format = bzrdir.format_registry.make_bzrdir('metaweave')
 
783
        format = bzrdir.format_registry.make_bzrdir('knit')
785
784
        transport = self.get_transport()
786
785
 
787
786
        # Create shared repository with working trees
1008
1007
        self.assertEqual('', err)
1009
1008
    
1010
1009
    def test_info_shared_repository_with_tree_in_root(self):
1011
 
        format = bzrdir.format_registry.make_bzrdir('metaweave')
 
1010
        format = bzrdir.format_registry.make_bzrdir('knit')
1012
1011
        transport = self.get_transport()
1013
1012
 
1014
1013
        # Create shared repository with working trees