~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

  • Committer: Aaron Bentley
  • Date: 2007-11-22 19:06:42 UTC
  • mto: This revision was merged to the branch mainline in revision 3036.
  • Revision ID: abentley@panoramicfeedback.com-20071122190642-l5bq9d0mkk1cmyzd
Implement directory diffing

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
        self.assertContainsRe(self.differ.to_file.getvalue(),
649
649
                              "=== target is 'new'\n")
650
650
 
 
651
    def test_diff_directory(self):
 
652
        self.build_tree(['new-tree/new-dir/'])
 
653
        self.new_tree.add('new-dir', 'new-dir-id')
 
654
        self.differ.diff('new-dir-id', None, 'new-dir')
 
655
        self.assertEqual(self.differ.to_file.getvalue(), '')
 
656
 
651
657
    def create_old_new(self):
652
658
        self.build_tree_contents([('old-tree/olddir/',),
653
659
                                  ('old-tree/olddir/oldfile', 'old\n')])