~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Lists of ignore files, etc."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
import errno
20
22
import os
21
23
from cStringIO import StringIO
27
29
    atomicfile,
28
30
    config,
29
31
    globbing,
 
32
    trace,
30
33
    )
31
 
 
32
 
from trace import warning
33
34
""")
34
35
 
35
36
# ~/.bazaar/ignore will be filled out using
72
73
                unicode_lines.append(line.decode('utf-8'))
73
74
            except UnicodeDecodeError:
74
75
                # report error about line (idx+1)
75
 
                warning('.bzrignore: On Line #%d, malformed utf8 character. '
 
76
                trace.warning(
 
77
                        '.bzrignore: On Line #%d, malformed utf8 character. '
76
78
                        'Ignoring line.' % (line_number+1))
77
79
 
78
80
    # Append each line to ignore list if it's not a comment line