~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Martin Pool
  • Date: 2006-01-30 11:55:34 UTC
  • mfrom: (1185.62.24 bzr-jam-pending)
  • Revision ID: mbp@sourcefrog.net-20060130115534-d9ca79b5856a08fa
[merge] jam-pending small fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""Commit message editor support."""
21
21
 
22
22
import os
 
23
import errno
23
24
from subprocess import call
24
25
 
25
26
import bzrlib.config as config
51
52
    """Try to execute an editor to edit the commit message."""
52
53
    for e in _get_editor():
53
54
        edargs = e.split(' ')
54
 
        x = call(edargs + [filename])
 
55
        try:
 
56
            x = call(edargs + [filename])
 
57
        except OSError, e:
 
58
           # ENOENT means no such editor
 
59
           if e.errno == errno.ENOENT:
 
60
               continue
 
61
           raise
55
62
        if x == 0:
56
63
            return True
57
64
        elif x == 127: