~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: 2011-08-17 18:13:57 UTC
  • mfrom: (5268.7.29 transport-segments)
  • Revision ID: pqm@pqm.ubuntu.com-20110817181357-y5q5eth1hk8bl3om
(jelmer) Allow specifying the colocated branch to use in the branch URL,
 and retrieving the branch name using ControlDir._get_selected_branch.
 (Jelmer Vernooij)

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