~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Martin Pool
  • Date: 2010-09-13 04:20:14 UTC
  • mto: (5416.1.7 ui-factory)
  • mto: This revision was merged to the branch mainline in revision 5422.
  • Revision ID: mbp@sourcefrog.net-20100913042014-9ia1c0b2cv8mxpyc
ScriptRunner can now cope with commands that prompt for input.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
            return None
150
150
        edited_content = msg_transport.get_bytes(basename)
151
151
        if edited_content == reference_content:
152
 
            if not ui.ui_factory.confirm_action(
153
 
                "Commit message was not edited, use anyway",
154
 
                "bzrlib.msgeditor.unchanged",
155
 
                {}):
 
152
            if not ui.ui_factory.get_boolean(
 
153
                "Commit message was not edited, use anyway"):
156
154
                # Returning "" makes cmd_commit raise 'empty commit message
157
155
                # specified' which is a reasonable error, given the user has
158
156
                # rejected using the unedited template.