~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Robert Collins
  • Date: 2005-10-08 00:39:04 UTC
  • mfrom: (1185.1.52)
  • Revision ID: robertc@robertcollins.net-20051008003904-aaffaea2778efe3e
merge in martins reweave, integrated to fetch, and a bugfix for commit and upgrade with executable files

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import os
23
23
from subprocess import call
24
 
 
25
 
import bzrlib.config as config
26
24
from bzrlib.errors import BzrError
27
25
 
28
26
def _get_editor():
29
27
    """Return a sequence of possible editor binaries for the current platform"""
 
28
    from bzrlib.osutils import _read_config_value
 
29
    
30
30
    try:
31
31
        yield os.environ["BZR_EDITOR"]
32
32
    except KeyError:
33
33
        pass
34
34
 
35
 
    e = config.GlobalConfig().get_editor()
 
35
    e = _read_config_value("editor")
36
36
    if e is not None:
37
37
        yield e
38
38