/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: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
See ``bzr help rules`` for details.
20
20
"""
21
21
 
 
22
from __future__ import absolute_import
 
23
 
22
24
import configobj
23
25
 
24
26
from . import (
25
 
    bedding,
 
27
    config,
26
28
    cmdline,
27
29
    errors,
28
30
    globbing,
160
162
        return ()
161
163
 
162
164
 
163
 
def rules_path():
164
 
    """Return the default rules file path."""
165
 
    return osutils.pathjoin(bedding.config_dir(), 'rules')
 
165
def rules_filename():
 
166
    """Return the default rules filename."""
 
167
    return osutils.pathjoin(config.config_dir(), 'rules')
166
168
 
167
169
 
168
170
def reset_rules():
169
171
    global _per_user_searcher
170
 
    _per_user_searcher = _IniBasedRulesSearcher(rules_path())
 
172
    _per_user_searcher = _IniBasedRulesSearcher(rules_filename())
171
173
 
172
174
 
173
175
reset_rules()