~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Aaron Bentley
  • Date: 2007-08-15 11:24:06 UTC
  • mfrom: (2702 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2703.
  • Revision ID: aaron.bentley@utoronto.ca-20070815112406-lyv23omlm0wgsu42
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
747
747
        tree = self.create_tree_with_single_merge()
748
748
        # f3 should be marked as modified by revisions A, B, C, and D
749
749
        self.assertAllRevisionsForFileID(tree, 'f2-id', ['D', 'C', 'A'])
 
750
 
 
751
 
 
752
class TestShowChangedRevisions(TestCaseWithTransport):
 
753
 
 
754
    def test_show_changed_revisions_verbose(self):
 
755
        tree = self.make_branch_and_tree('tree_a')
 
756
        self.build_tree(['tree_a/foo'])
 
757
        tree.add('foo')
 
758
        tree.commit('bar', rev_id='bar-id')
 
759
        s = StringIO()
 
760
        log.show_changed_revisions(tree.branch, [], ['bar-id'], s)
 
761
        self.assertContainsRe(s.getvalue(), 'bar')
 
762
        self.assertNotContainsRe(s.getvalue(), 'foo')