/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: Martin
  • Date: 2019-06-16 01:03:51 UTC
  • mto: This revision was merged to the branch mainline in revision 7340.
  • Revision ID: gzlist@googlemail.com-20190616010351-uz89ydnwdoal4ve4
Split non-ini config methods to bedding

Functions that determine filesystem paths to use for config and default
username are now outside of the main (large) config module.

Also move cache_dir function from osutils and normalise logic.

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" % \