~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-08 07:32:48 UTC
  • mfrom: (5138.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100408073248-aj7k8qkvbv4nzlxd
(igc for parthm) update -r dotted-revno support

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Commit message editor support."""
19
19
 
20
20
import codecs
 
21
import errno
21
22
import os
22
23
from subprocess import call
23
24
import sys
149
150
            return None
150
151
        edited_content = msg_transport.get_bytes(basename)
151
152
        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
 
                {}):
 
153
            if not ui.ui_factory.get_boolean(
 
154
                "Commit message was not edited, use anyway"):
156
155
                # Returning "" makes cmd_commit raise 'empty commit message
157
156
                # specified' which is a reasonable error, given the user has
158
157
                # rejected using the unedited template.