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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-27 18:43:45 UTC
  • mfrom: (3961.1.2 bzr.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090127184345-wkncpsyxov2citpy
(vila) Fix bug #314525: don't try to put ids if there is no annotation

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
        out, err = self.run_bzr('annotate empty')
232
232
        self.assertEqual('', out)
233
233
 
 
234
    def test_annotate_empty_file_show_ids(self):
 
235
        tree = self.make_branch_and_tree('tree')
 
236
        self.build_tree_contents([('tree/empty', '')])
 
237
        tree.add('empty')
 
238
        tree.commit('add empty file')
 
239
 
 
240
        os.chdir('tree')
 
241
        out, err = self.run_bzr(['annotate', '--show-ids', 'empty'])
 
242
        self.assertEqual('', out)
 
243
 
234
244
    def test_annotate_nonexistant_file(self):
235
245
        tree = self.make_branch_and_tree('tree')
236
246
        self.build_tree(['tree/file'])