/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/tests/blackbox/test_revision_info.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib.errors import BzrCommandError, NoSuchRevision
20
 
from bzrlib.tests import TestCaseWithTransport
21
 
from bzrlib.workingtree import WorkingTree
 
19
from breezy.errors import BzrCommandError, NoSuchRevision
 
20
from breezy.tests import TestCaseWithTransport
 
21
from breezy.workingtree import WorkingTree
22
22
 
23
23
 
24
24
class TestRevisionInfo(TestCaseWithTransport):
25
25
 
26
26
    def check_output(self, output, *args):
27
 
        """Verify that the expected output matches what bzr says.
 
27
        """Verify that the expected output matches what brz says.
28
28
 
29
29
        The output is supplied first, so that you can supply a variable
30
30
        number of arguments to bzr.
32
32
        self.assertEqual(self.run_bzr(*args)[0], output)
33
33
 
34
34
    def test_revision_info(self):
35
 
        """Test that 'bzr revision-info' reports the correct thing."""
 
35
        """Test that 'brz revision-info' reports the correct thing."""
36
36
        wt = self.make_branch_and_tree('.')
37
37
 
38
38
        # Make history with a non-mainline rev
85
85
                          'revision-info --revision revid:a@r-0-1.1.1')
86
86
 
87
87
    def test_revision_info_explicit_branch_dir(self):
88
 
        """Test that 'bzr revision-info' honors the '-d' option."""
 
88
        """Test that 'brz revision-info' honors the '-d' option."""
89
89
        wt = self.make_branch_and_tree('branch')
90
90
 
91
91
        wt.commit('Commit one', rev_id='a@r-0-1')
112
112
        # Try getting the --tree revision-info
113
113
        out,err = self.run_bzr('revision-info --tree -d branch', retcode=3)
114
114
        self.assertEqual('', out)
115
 
        self.assertEqual('bzr: ERROR: No WorkingTree exists for "branch".\n',
 
115
        self.assertEqual('brz: ERROR: No WorkingTree exists for "branch".\n',
116
116
            err)
117
117
 
118
118
    def test_revision_info_not_in_history(self):