~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Ian Clatworthy
  • Date: 2009-05-06 01:37:46 UTC
  • mfrom: (4324.4.1 bzr.rules)
  • mto: This revision was merged to the branch mainline in revision 4334.
  • Revision ID: ian.clatworthy@canonical.com-20090506013746-3d9zv74xyq6urodb
Make it easier to blackbox test rules (Marius Kruger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
657
657
            return None
658
658
 
659
659
    def iter_search_rules(self, path_names, pref_names=None,
660
 
        _default_searcher=rules._per_user_searcher):
 
660
        _default_searcher=None):
661
661
        """Find the preferences for filenames in a tree.
662
662
 
663
663
        :param path_names: an iterable of paths to find attributes for.
667
667
        :return: an iterator of tuple sequences, one per path-name.
668
668
          See _RulesSearcher.get_items for details on the tuple sequence.
669
669
        """
 
670
        if _default_searcher is None:
 
671
            _default_searcher = rules._per_user_searcher
670
672
        searcher = self._get_rules_searcher(_default_searcher)
671
673
        if searcher is not None:
672
674
            if pref_names is not None: