/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: 2018-11-16 23:15:15 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7183.
  • Revision ID: jelmer@jelmer.uk-20181116231515-zqd2yn6kj8lfydyp
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
        # Expected return values
49
49
        values = {
50
 
            '1'    : '1 a@r-0-1\n',
 
50
            '1': '1 a@r-0-1\n',
51
51
            '1.1.1': '1.1.1 a@r-0-1.1.1\n',
52
 
            '2'    : '2 a@r-0-2\n'
 
52
            '2': '2 a@r-0-2\n'
53
53
        }
54
54
 
55
55
        # Make sure with no arg it defaults to the head
59
59
        self.check_output(values['1'], 'revision-info 1')
60
60
        self.check_output(values['1.1.1'], 'revision-info 1.1.1')
61
61
        self.check_output(values['2'], 'revision-info 2')
62
 
        self.check_output(values['1']+values['2'], 'revision-info 1 2')
63
 
        self.check_output('    '+values['1']+
64
 
                                 values['1.1.1']+
65
 
                          '    '+values['2'],
 
62
        self.check_output(values['1'] + values['2'], 'revision-info 1 2')
 
63
        self.check_output('    ' + values['1']
 
64
                          + values['1.1.1']
 
65
                          + '    ' + values['2'],
66
66
                          'revision-info 1 1.1.1 2')
67
 
        self.check_output(values['2']+values['1'], 'revision-info 2 1')
 
67
        self.check_output(values['2'] + values['1'], 'revision-info 2 1')
68
68
 
69
69
        # Check as above, only using the '--revision' syntax
70
70
 
71
71
        self.check_output(values['1'], 'revision-info -r 1')
72
72
        self.check_output(values['1.1.1'], 'revision-info --revision 1.1.1')
73
73
        self.check_output(values['2'], 'revision-info -r 2')
74
 
        self.check_output(values['1']+values['2'], 'revision-info -r 1..2')
75
 
        self.check_output('    '+values['1']+
76
 
                                 values['1.1.1']+
77
 
                          '    '+values['2'],
 
74
        self.check_output(values['1'] + values['2'], 'revision-info -r 1..2')
 
75
        self.check_output('    ' + values['1']
 
76
                          + values['1.1.1']
 
77
                          + '    ' + values['2'],
78
78
                          'revision-info -r 1..1.1.1..2')
79
 
        self.check_output(values['2']+values['1'], 'revision-info -r 2..1')
 
79
        self.check_output(values['2'] + values['1'], 'revision-info -r 2..1')
80
80
 
81
81
        # Now try some more advanced revision specifications
82
82
 
113
113
        out, err = self.run_bzr('revision-info --tree -d branch', retcode=3)
114
114
        self.assertEqual('', out)
115
115
        self.assertEqual('brz: ERROR: No WorkingTree exists for "branch".\n',
116
 
            err)
 
116
                         err)
117
117
 
118
118
    def test_revision_info_not_in_history(self):
119
119
        builder = self.make_branch_builder('branch')