~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Robert Collins
  • Date: 2006-08-08 23:19:29 UTC
  • mfrom: (1884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060808231929-4e3e298190214b3a
current status

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import bzrlib
27
27
import bzrlib.config as config
28
28
from bzrlib.errors import BzrError
 
29
from bzrlib.trace import warning, mutter
29
30
 
30
31
 
31
32
def _get_editor():
56
57
    for e in _get_editor():
57
58
        edargs = e.split(' ')
58
59
        try:
 
60
            ## mutter("trying editor: %r", (edargs +[filename]))
59
61
            x = call(edargs + [filename])
60
62
        except OSError, e:
61
63
           # We're searching for an editor, so catch safe errors and continue
142
144
            try:
143
145
                os.unlink(msgfilename)
144
146
            except IOError, e:
145
 
                mutter("failed to unlink %s: %s; ignored", msgfilename, e)
 
147
                warning("failed to unlink %s: %s; ignored", msgfilename, e)
146
148
 
147
149
 
148
150
def make_commit_message_template(working_tree, specific_files):