~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: John Arbash Meinel
  • Author(s): Mark Hammond
  • Date: 2008-09-09 17:02:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3697.
  • Revision ID: john@arbash-meinel.com-20080909170221-svim3jw2mrz0amp3
An updated transparent icon for bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
import bzrlib
27
27
import bzrlib.config as config
 
28
from bzrlib import osutils
28
29
from bzrlib.errors import BzrError, BadCommitMessageEncoding
29
30
from bzrlib.trace import warning, mutter
30
31
 
60
61
            ## mutter("trying editor: %r", (edargs +[filename]))
61
62
            x = call(edargs + [filename])
62
63
        except OSError, e:
63
 
           # We're searching for an editor, so catch safe errors and continue
64
 
           if e.errno in (errno.ENOENT, ):
65
 
               continue
66
 
           raise
 
64
            # We're searching for an editor, so catch safe errors and continue
 
65
            if e.errno in (errno.ENOENT, ):
 
66
                continue
 
67
            raise
67
68
        if x == 0:
68
69
            return True
69
70
        elif x == 127:
204
205
    """
205
206
    import tempfile
206
207
    tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.',
207
 
                                               dir=u'.',
 
208
                                               dir='.',
208
209
                                               text=True)
 
210
    msgfilename = osutils.basename(msgfilename)
209
211
    msgfile = os.fdopen(tmp_fileno, 'w')
210
212
    try:
211
213
        if start_message is not None: