~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-24 14:12:53 UTC
  • mto: This revision was merged to the branch mainline in revision 2095.
  • Revision ID: john@arbash-meinel.com-20061024141253-783fba812b197b70
(John Arbash Meinel) Update version information for 0.13 development

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import errno
20
20
 
21
 
from bzrlib import (
22
 
    config,
23
 
    globbing,
24
 
    )
 
21
from bzrlib import config
25
22
 
26
23
# This was the full ignore list for bzr 0.8
27
24
# please keep these sorted (in C locale order) to aid merging
105
102
        line = line.rstrip('\r\n')
106
103
        if not line or line.startswith('#'):
107
104
            continue
108
 
        ignored.add(globbing.normalize_pattern(line))
 
105
        ignored.add(line)
109
106
    return ignored
110
107
 
111
108
 
166
163
    ignored = get_user_ignores()
167
164
    to_add = []
168
165
    for ignore in new_ignores:
169
 
        ignore = globbing.normalize_pattern(ignore)
170
166
        if ignore not in ignored:
171
167
            ignored.add(ignore)
172
168
            to_add.append(ignore)