/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/msgeditor.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2019-06-16 01:52:23 UTC
  • mfrom: (7336.2.1 split_config_env)
  • Revision ID: breezy.the.bot@gmail.com-20190616015223-0kkno5fepi7tmbqy
Split non-ini config methods to bedding

Merged from https://code.launchpad.net/~gz/brz/split_config_env/+merge/368863

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import sys
25
25
 
26
26
from . import (
 
27
    bedding,
27
28
    cmdline,
28
29
    config,
29
30
    osutils,
54
55
 
55
56
    e = config.GlobalStack().get('editor')
56
57
    if e is not None:
57
 
        yield e, config.config_filename()
 
58
        yield e, bedding.config_path()
58
59
 
59
60
    for varname in 'VISUAL', 'EDITOR':
60
61
        if varname in os.environ:
93
94
    raise BzrError("Could not start any editor.\nPlease specify one with:\n"
94
95
                   " - $BRZ_EDITOR\n - editor=/some/path in %s\n"
95
96
                   " - $VISUAL\n - $EDITOR" %
96
 
                   config.config_filename())
 
97
                   bedding.config_path())
97
98
 
98
99
 
99
100
DEFAULT_IGNORE_LINE = "%(bar)s %(msg)s %(bar)s" % \