~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Marius Kruger
  • Date: 2012-06-10 22:48:08 UTC
  • mto: This revision was merged to the branch mainline in revision 6544.
  • Revision ID: amanic@gmail.com-20120610224808-s7qj3ep4zd21s0u7
use ui.ui_factory.show_user_warning to warn about not checking ssl certs, so that we only do it once

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
 
18
17
"""Commit message editor support."""
19
18
 
 
19
from __future__ import absolute_import
 
20
 
20
21
import codecs
21
22
import os
22
23
from subprocess import call
144
145
        if not msgfilename:
145
146
            return None
146
147
        basename = osutils.basename(msgfilename)
147
 
        msg_transport = transport.get_transport(osutils.dirname(msgfilename))
 
148
        msg_transport = transport.get_transport_from_path(osutils.dirname(msgfilename))
148
149
        reference_content = msg_transport.get_bytes(basename)
149
150
        if not _run_editor(msgfilename):
150
151
            return None