~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Robert Collins
  • Date: 2010-04-07 22:22:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5138.
  • Revision ID: robertc@robertcollins.net-20100407222227-a5el12vho6d33ndx
Review feedback: add comment about return value and an additional test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
        if edited_content == reference_content:
153
153
            if not ui.ui_factory.get_boolean(
154
154
                "Commit message was not edited, use anyway"):
 
155
                # Returning "" makes cmd_commit raise 'empty commit message
 
156
                # specified' which is a reasonable error, given the user has
 
157
                # rejected using the unedited template.
155
158
                return ""
156
159
        started = False
157
160
        msg = []