~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_annotate.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-09 08:51:29 UTC
  • mfrom: (5638.2.2 537442-annotate-removed)
  • Revision ID: pqm@pqm.ubuntu.com-20110209085129-0qspgtdaj4gfu2qr
(vila) Annotate deleted files if they can be found in the specified
 revision. (Andrew King)

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        out, err = self.run_bzr('annotate empty')
246
246
        self.assertEqual('', out)
247
247
 
 
248
    def test_annotate_removed_file(self):
 
249
        tree = self.make_branch_and_tree('tree')
 
250
        self.build_tree_contents([('tree/empty', '')])
 
251
        tree.add('empty')
 
252
        tree.commit('add empty file')
 
253
        # delete the file.
 
254
        tree.remove('empty')
 
255
        tree.commit('remove empty file')
 
256
        
 
257
        os.chdir('tree')
 
258
        out, err = self.run_bzr('annotate -r1 empty')
 
259
        self.assertEqual('', out)
 
260
 
248
261
    def test_annotate_empty_file_show_ids(self):
249
262
        tree = self.make_branch_and_tree('tree')
250
263
        self.build_tree_contents([('tree/empty', '')])