~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

[merge] jam-integration 1527, including branch-formats, help text, misc bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    """Try to execute an editor to edit the commit message."""
55
55
    for e in _get_editor():
56
56
        edargs = e.split(' ')
57
 
        x = call(edargs + [filename])
 
57
        try:
 
58
            x = call(edargs + [filename])
 
59
        except OSError, e:
 
60
           # ENOENT means no such editor
 
61
           if e.errno == errno.ENOENT:
 
62
               continue
 
63
           raise
58
64
        if x == 0:
59
65
            return True
60
66
        elif x == 127: