/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/rules.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 configobj
25
25
 
26
26
from . import (
27
 
    config,
 
27
    bedding,
28
28
    cmdline,
29
29
    errors,
30
30
    globbing,
162
162
        return ()
163
163
 
164
164
 
165
 
def rules_filename():
166
 
    """Return the default rules filename."""
167
 
    return osutils.pathjoin(config.config_dir(), 'rules')
 
165
def rules_path():
 
166
    """Return the default rules file path."""
 
167
    return osutils.pathjoin(bedding.config_dir(), 'rules')
168
168
 
169
169
 
170
170
def reset_rules():
171
171
    global _per_user_searcher
172
 
    _per_user_searcher = _IniBasedRulesSearcher(rules_filename())
 
172
    _per_user_searcher = _IniBasedRulesSearcher(rules_path())
173
173
 
174
174
 
175
175
reset_rules()