/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 breezy/git/tests/test_blackbox.py

Print proper error when running `brz cat-revision` on Git repositories.

Merged from https://code.launchpad.net/~jelmer/brz/cat-revision-git/+merge/363694

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        self.assertEqual(output, '')
79
79
        self.assertFileEqual("foo\n", ".gitignore")
80
80
 
 
81
    def test_cat_revision(self):
 
82
        self.simple_commit()
 
83
        output, error = self.run_bzr(['cat-revision', '-r-1'], retcode=3)
 
84
        self.assertContainsRe(
 
85
            error,
 
86
            'brz: ERROR: Repository .* does not support access to raw '
 
87
            'revision texts')
 
88
        self.assertEqual(output, '')
 
89
 
81
90
    def test_branch(self):
82
91
        os.mkdir("gitbranch")
83
92
        GitRepo.init(os.path.join(self.test_dir, "gitbranch"))