~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

 * bzr add now lists how many files were ignored per glob.  add --verbose
   lists the specific files.  (Aaron Bentley)

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
24
23
from subprocess import call
25
24
 
26
25
import bzrlib.config as config
52
51
    """Try to execute an editor to edit the commit message."""
53
52
    for e in _get_editor():
54
53
        edargs = e.split(' ')
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
 
54
        x = call(edargs + [filename])
62
55
        if x == 0:
63
56
            return True
64
57
        elif x == 127:
148
141
    # the revision to be committed, then pause and ask the user to
149
142
    # confirm/write a message.
150
143
    from StringIO import StringIO       # must be unicode-safe
151
 
    from bzrlib.status import show_tree_status
 
144
    from bzrlib.status import show_status
152
145
    status_tmp = StringIO()
153
 
    show_tree_status(working_tree, specific_files=specific_files, 
154
 
                     to_file=status_tmp)
 
146
    show_status(working_tree.branch, specific_files=specific_files, to_file=status_tmp)
155
147
    return status_tmp.getvalue()