~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Print the number of colocated branches in 'bzr info'. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1376
1376
         0 versioned subdirectories
1377
1377
""", out)
1378
1378
        self.assertEqual("", err)
 
1379
 
 
1380
    def test_info_shows_colocated_branches(self):
 
1381
        bzrdir = self.make_branch('.', format='development-colo').bzrdir
 
1382
        bzrdir.create_branch(name="colo1")
 
1383
        bzrdir.create_branch(name="colo2")
 
1384
        bzrdir.create_branch(name="colo3")
 
1385
        out, err = self.run_bzr('info -v .')
 
1386
        self.assertEqualDiff(
 
1387
"""Standalone branch (format: development-colo)
 
1388
Location:
 
1389
  branch root: .
 
1390
 
 
1391
Format:
 
1392
       control: Meta directory format 1 with support for colocated branches
 
1393
        branch: Branch format 7
 
1394
    repository: Repository format 2a - rich roots, group compression and chk inventories
 
1395
 
 
1396
Control directory:
 
1397
         4 branches
 
1398
 
 
1399
Branch history:
 
1400
         0 revisions
 
1401
 
 
1402
Repository:
 
1403
         0 revisions
 
1404
""", out)
 
1405
        self.assertEqual("", err)