~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Fix 'bzr info -v' for a control directory without a repository.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
            '  control directory: ctrl\n')
58
58
        self.assertEquals(err, '')
59
59
 
 
60
    def test_info_empty_controldir_verbose(self):
 
61
        self.make_bzrdir('ctrl')
 
62
        out, err = self.run_bzr('info -v ctrl')
 
63
        self.assertEqualDiff(out,
 
64
            'Empty control directory (format: 2a or pack-0.92)\n'
 
65
            'Location:\n'
 
66
            '  control directory: ctrl\n\n'
 
67
            'Format:\n'
 
68
            '       control: Meta directory format 1\n\n'
 
69
            'Control directory:\n'
 
70
            '         0 branches\n')
 
71
        self.assertEquals(err, '')
 
72
 
60
73
    def test_info_dangling_branch_reference(self):
61
74
        br = self.make_branch('target')
62
75
        br.create_checkout('from', lightweight=True)