/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/blackbox/test_info.py

  • Committer: Wouter van Heyst
  • Date: 2006-06-06 12:06:20 UTC
  • mfrom: (1740 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060606120620-50066b0951e4ef7c
merge bzr.dev 1740

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 
130
130
        # Branch and bind to standalone, needs upgrade to metadir
131
131
        # (creates backup as unknown)
132
 
        # XXX: I can't get this to work through API
133
 
        self.runbzr('branch standalone bound')
134
 
        #branch3 = branch1.bzrdir.sprout('bound').open_branch()
135
 
        self.runbzr('upgrade --format=metaweave bound')
136
 
        #bzrlib.upgrade.upgrade('bound', bzrlib.bzrdir.BzrDirMetaFormat1())
 
132
        branch1.bzrdir.sprout('bound')
 
133
        bzrlib.upgrade.upgrade('bound', bzrlib.bzrdir.BzrDirMetaFormat1())
137
134
        branch3 = bzrlib.bzrdir.BzrDir.open('bound').open_branch()
138
135
        branch3.bind(branch1)
139
136
        out, err = self.runbzr('info bound')
463
460
       ), out)
464
461
        self.assertEqual('', err)
465
462
 
 
463
    def test_info_standalone_no_tree(self):
 
464
        # create standalone branch without a working tree
 
465
        branch = self.make_branch('branch')
 
466
        repo = branch.repository
 
467
        out, err = self.runbzr('info branch')
 
468
        self.assertEqualDiff(
 
469
"""Location:
 
470
  branch root: %s
 
471
 
 
472
Format:
 
473
       control: Meta directory format 1
 
474
        branch: Branch format 5
 
475
    repository: %s
 
476
 
 
477
Branch history:
 
478
         0 revisions
 
479
 
 
480
Revision store:
 
481
         0 revisions
 
482
         0 KiB
 
483
""" % (branch.bzrdir.root_transport.base,
 
484
       repo._format.get_format_description(),
 
485
       ), out)
 
486
        self.assertEqual('', err)
 
487
 
466
488
    def test_info_shared_repository(self):
467
489
        old_format = bzrlib.bzrdir.BzrDirFormat.get_default_format()
468
490
        bzrlib.bzrdir.BzrDirFormat.set_default_format(bzrlib.bzrdir.BzrDirMetaFormat1())