~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/rules.py

  • Committer: Marius Kruger
  • Date: 2009-01-18 01:07:21 UTC
  • mto: (3946.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3947.
  • Revision ID: amanic@gmail.com-20090118010721-2s62eobbgk51qqn9
actually support quoting the patterns as the docs suggest

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from bzrlib import (
23
23
    config,
 
24
    commands,
24
25
    errors,
25
26
    globbing,
26
27
    osutils,
79
80
        for s in sections:
80
81
            if s.startswith(FILE_PREFS_PREFIX):
81
82
                rule_section_count += 1
82
 
                file_patterns = s[FILE_PREFS_PREFIX_LEN:].split(' ')
 
83
                file_patterns = commands.shlex_split_unicode(
 
84
                    s[FILE_PREFS_PREFIX_LEN:])
83
85
                patterns.extend(file_patterns)
84
86
                for fp in file_patterns:
85
87
                    self.pattern_to_section[fp] = s