/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 bzrlib/builtins.py

  • Committer: Vincent Ladeuil
  • Date: 2010-07-05 08:10:03 UTC
  • mfrom: (5335 +trunk)
  • mto: (5247.1.14 first-try)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100705081003-nru27by56wm5nkxy
Merge bzr.dev into cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
2721
2721
        ignores.tree_ignores_add_patterns(tree, name_pattern_list)
2722
2722
        ignored = globbing.Globster(name_pattern_list)
2723
2723
        matches = []
2724
 
        tree.lock_read()
 
2724
        self.add_cleanup(tree.lock_read().unlock)
2725
2725
        for entry in tree.list_files():
2726
2726
            id = entry[3]
2727
2727
            if id is not None:
2728
2728
                filename = entry[0]
2729
2729
                if ignored.match(filename):
2730
2730
                    matches.append(filename)
2731
 
        tree.unlock()
2732
2731
        if len(matches) > 0:
2733
2732
            self.outf.write("Warning: the following files are version controlled and"
2734
2733
                  " match your ignore pattern:\n%s"