/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-05-29 03:22:34 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7306.
  • Revision ID: jelmer@jelmer.uk-20190529032234-mt3fuws8gq03tapi
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Rule-based definition of preferences for selected files in selected branches.
 
17
"""Rule-based definition of preferences for selected files in selected branches
18
18
 
19
19
See ``bzr help rules`` for details.
20
20
"""
106
106
                    self.pattern_to_section[fp] = s
107
107
        if len(patterns) < len(sections):
108
108
            unknowns = [s for s in sections
109
 
                if not s.startswith(FILE_PREFS_PREFIX)]
 
109
                        if not s.startswith(FILE_PREFS_PREFIX)]
110
110
            raise UnknownRules(unknowns)
111
111
        elif patterns:
112
112
            self._globster = globbing._OrderedGlobster(patterns)
171
171
    global _per_user_searcher
172
172
    _per_user_searcher = _IniBasedRulesSearcher(rules_filename())
173
173
 
 
174
 
174
175
reset_rules()