~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2010-04-07 00:50:56 UTC
  • mto: This revision was merged to the branch mainline in revision 5138.
  • Revision ID: robertc@robertcollins.net-20100407005056-wl0vsz9uietffpy8
* ``bzr commit`` will prompt before using a commit message that was
  generated by a template and not edited by the user.
  (Robert Collins, #530265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
693
693
        tree = self.make_branch_and_tree('tree')
694
694
        self.build_tree(['tree/hello.txt'])
695
695
        tree.add('hello.txt')
696
 
        out, err = self.run_bzr("commit tree/hello.txt")
 
696
        out, err = self.run_bzr("commit tree/hello.txt", stdin="y\n")
697
697
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
698
698
        self.assertEqual('save me some typing\n', last_rev.message)