~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: 2009-12-07 11:22:03 UTC
  • mfrom: (4869.1.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20091207112203-lrudgmkz8hfknidz
commit warns for file-name-like messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
                              'modified hello\.txt\n'
108
108
                              'Committed revision 2\.\n$')
109
109
 
 
110
    def test_warn_about_forgotten_commit_message(self):
 
111
        """Test that the lack of -m parameter is caught"""
 
112
        wt = self.make_branch_and_tree('.')
 
113
        self.build_tree(['one', 'two'])
 
114
        wt.add(['two'])
 
115
        out, err = self.run_bzr('commit -m one two')
 
116
        self.assertContainsRe(err, "The commit message is a file name")
 
117
 
110
118
    def test_verbose_commit_renamed(self):
111
119
        # Verbose commit of renamed file should say so
112
120
        wt = self.prepare_simple_history()