~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-17 07:52:09 UTC
  • mfrom: (1910.3.4 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20060817075209-e85a1f9e05ff8b87
(andrew) Trivial fixes to NotImplemented errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Development Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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)