~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Robert Collins
  • Date: 2009-08-19 01:44:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4628.
  • Revision ID: robertc@robertcollins.net-20090819014441-7m54nhv96hn1eatu
Review feedback per IanC.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        lf = LogCatcher()
143
143
        log.show_log(wt.branch, lf, verbose=True)
144
144
        committed_msg = lf.revisions[0].rev.message
145
 
        if msg == committed_msg:
146
 
            raise tests.KnownFailure(
147
 
                "Commit message was preserved, but it wasn't expected to be.")
148
 
        self.assertNotEqual(msg, committed_msg)
149
 
        self.assertTrue(len(committed_msg) > len(msg))
 
145
        if wt.branch.repository._serializer.squashes_xml_invalid_characters:
 
146
            self.assertNotEqual(msg, committed_msg)
 
147
            self.assertTrue(len(committed_msg) > len(msg))
 
148
        else:
 
149
            self.assertEqual(msg, committed_msg)
150
150
 
151
151
    def test_commit_message_without_control_chars(self):
152
152
        wt = self.make_branch_and_tree('.')