~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-14 01:23:48 UTC
  • mfrom: (6045.1.6 207507-bzr-commit-message)
  • Revision ID: pqm@pqm.ubuntu.com-20110814012348-8sg40gtq2rls03fa
(jelmer) Mention ways of specifying a commit message or forcing an empty
 commit message when the user specifies an empty message. (Paul Stewart)

Show diffs side-by-side

added added

removed removed

Lines of Context:
750
750
    def test_commit_hook_template_rejected(self):
751
751
        tree = self.setup_commit_with_template()
752
752
        expected = tree.last_revision()
753
 
        out, err = self.run_bzr_error(["empty commit message"],
 
753
        out, err = self.run_bzr_error(["Empty commit message specified."
 
754
                  " Please specify a commit message with either"
 
755
                  " --message or --file or leave a blank message"
 
756
                  " with --message \"\"."],
754
757
            "commit tree/hello.txt", stdin="n\n")
755
758
        self.assertEqual(expected, tree.last_revision())
756
759