~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

Make msgeditor invocation comply with Debian Policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        yield e
40
40
        
41
41
    try:
 
42
        yield os.environ["VISUAL"]
 
43
    except KeyError:
 
44
        pass
 
45
        
 
46
    try:
42
47
        yield os.environ["EDITOR"]
43
48
    except KeyError:
44
49
        pass
47
52
        for editor in 'wordpad.exe', 'notepad.exe':
48
53
            yield editor
49
54
    else:
50
 
        for editor in ['vi', 'pico', 'nano', 'joe']:
 
55
        for editor in ['/usr/bin/editor', 'vi', 'pico', 'nano', 'joe']:
51
56
            yield editor
52
57
 
53
58