/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: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

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