/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 bzrlib/tests/test_commit.py

(jelmer) During commit, report missing files as "deleted",
 not as "modified". (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
        wt.commit(message='add hello')
162
162
 
163
163
        os.remove('hello')
164
 
        wt.commit('removed hello', rev_id='rev2')
 
164
        reporter = CapturingReporter()
 
165
        wt.commit('removed hello', rev_id='rev2', reporter=reporter)
 
166
        self.assertEquals(
 
167
            [('missing', u'hello'), ('deleted', u'hello')],
 
168
            reporter.calls)
165
169
 
166
170
        tree = b.repository.revision_tree('rev2')
167
171
        self.assertFalse(tree.has_id('hello-id'))