~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-10-31 22:11:59 UTC
  • mfrom: (6236 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6252.
  • Revision ID: v.ladeuil+lp@free.fr-20111031221159-zmbd6izz1flzyisa
Merge trunk before submission

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        self.run_bzr('init-repo a')
42
42
        out, err = self.run_bzr('branches', working_dir='a')
43
43
        self.assertEquals(out, "")
 
44
 
 
45
    def test_recursive_current(self):
 
46
        self.run_bzr('init .')
 
47
        self.assertEquals(".\n", self.run_bzr('branches --recursive')[0])
 
48
 
 
49
    def test_recursive(self):
 
50
        self.run_bzr('init source')
 
51
        self.run_bzr('init source/subsource')
 
52
        self.run_bzr('checkout --lightweight source checkout')
 
53
        self.run_bzr('init checkout/subcheckout')
 
54
        self.run_bzr('init checkout/.bzr/subcheckout')
 
55
        out = self.run_bzr('branches --recursive')[0]
 
56
        lines = out.split('\n')
 
57
        self.assertIs(True, 'source' in lines, lines)
 
58
        self.assertIs(True, 'source/subsource' in lines, lines)
 
59
        self.assertIs(True, 'checkout/subcheckout' in lines, lines)
 
60
        self.assertIs(True, 'checkout' not in lines, lines)