/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/ignores.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import os
23
23
from cStringIO import StringIO
24
24
 
25
 
import brzlib
26
 
from brzlib.lazy_import import lazy_import
 
25
import breezy
 
26
from breezy.lazy_import import lazy_import
27
27
lazy_import(globals(), """
28
 
from brzlib import (
 
28
from breezy import (
29
29
    atomicfile,
30
30
    config,
31
31
    globbing,
120
120
    write to the user ignore file.
121
121
    This is mostly used for testing, since it would be
122
122
    bad form to rewrite a user's ignore list.
123
 
    brzlib only writes this file if it does not exist.
 
123
    breezy only writes this file if it does not exist.
124
124
    """
125
125
    ignore_path = config.user_ignore_config_filename()
126
126
    config.ensure_config_dir_exists()
194
194
    :return: None
195
195
    """
196
196
    # read in the existing ignores set
197
 
    ifn = tree.abspath(brzlib.IGNORE_FILENAME)
 
197
    ifn = tree.abspath(breezy.IGNORE_FILENAME)
198
198
    if tree.has_filename(ifn):
199
199
        f = open(ifn, 'rU')
200
200
        try:
232
232
    finally:
233
233
        f.close()
234
234
 
235
 
    if not tree.path2id(brzlib.IGNORE_FILENAME):
236
 
        tree.add([brzlib.IGNORE_FILENAME])
 
235
    if not tree.path2id(breezy.IGNORE_FILENAME):
 
236
        tree.add([breezy.IGNORE_FILENAME])