~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2005-09-01 11:19:08 UTC
  • Revision ID: mbp@sourcefrog.net-20050901111907-ff5ac13ee6fedc85
- split commit message editor functions out into own file

Show diffs side-by-side

added added

removed removed

Lines of Context:
949
949
    def run(self, message=None, file=None, verbose=True, selected_list=None,
950
950
            unchanged=False):
951
951
        from bzrlib.errors import PointlessCommit
952
 
        from bzrlib.osutils import get_text_message
 
952
        from bzrlib.msgeditor import edit_commit_message
953
953
 
954
954
        ## Warning: shadows builtin file()
955
955
        if not message and not file:
962
962
            cmd_status().run(file_list=selected_list)
963
963
            info = catcher.getvalue()
964
964
            sys.stdout = stdout
965
 
            message = get_text_message(info)
 
965
            message = edit_commit_message(info)
966
966
            
967
967
            if message is None:
968
968
                raise BzrCommandError("please specify a commit message",