/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: Martin Pool
  • Date: 2008-07-07 10:31:06 UTC
  • mfrom: (3221.11.29 reconfigure.shallow)
  • mto: This revision was merged to the branch mainline in revision 3537.
  • Revision ID: mbp@sourcefrog.net-20080707103106-jpch6tczx7x2yuq0
merge all stacking threads; some tests currently failing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1368
1368
       ), out)
1369
1369
        self.assertEqual('', err)
1370
1370
        tree.unlock()
 
1371
 
 
1372
    def test_info_stacked(self):
 
1373
        # We have a mainline
 
1374
        trunk_tree = self.make_branch_and_tree('mainline',
 
1375
            format='development1')
 
1376
        trunk_tree.commit('mainline')
 
1377
        # and a branch from it which is stacked
 
1378
        new_dir = trunk_tree.bzrdir.sprout('newbranch', stacked=True)
 
1379
        out, err = self.run_bzr('info newbranch')
 
1380
        self.assertEqual(
 
1381
"""Standalone tree (format: development1)
 
1382
Location:
 
1383
  branch root: newbranch
 
1384
 
 
1385
Related branches:
 
1386
  parent branch: mainline
 
1387
     stacked on: mainline
 
1388
""", out)
 
1389
        self.assertEqual("", err)