/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_revert.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    def test_revert(self):
120
120
        self.run_bzr('init')
121
121
 
122
 
        with open('hello', 'wt') as f: f.write('foo')
 
122
        with open('hello', 'wt') as f:
 
123
            f.write('foo')
123
124
        self.run_bzr('add hello')
124
125
        self.run_bzr('commit -m setup hello')
125
126
 
126
 
        with open('goodbye', 'wt') as f: f.write('baz')
 
127
        with open('goodbye', 'wt') as f:
 
128
            f.write('baz')
127
129
        self.run_bzr('add goodbye')
128
130
        self.run_bzr('commit -m setup goodbye')
129
131
 
130
 
        with open('hello', 'wt') as f: f.write('bar')
131
 
        with open('goodbye', 'wt') as f: f.write('qux')
 
132
        with open('hello', 'wt') as f:
 
133
            f.write('bar')
 
134
        with open('goodbye', 'wt') as f:
 
135
            f.write('qux')
132
136
        self.run_bzr('revert hello')
133
137
        self.check_file_contents('hello', b'foo')
134
138
        self.check_file_contents('goodbye', b'qux')
156
160
        else:
157
161
            self.log("skipping revert symlink tests")
158
162
 
159
 
        with open('hello', 'wt') as f: f.write('xyz')
 
163
        with open('hello', 'wt') as f:
 
164
            f.write('xyz')
160
165
        self.run_bzr('commit -m xyz hello')
161
166
        self.run_bzr('revert -r 1 hello')
162
167
        self.check_file_contents('hello', b'foo')