~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Ian Clatworthy
  • Date: 2008-05-13 06:25:38 UTC
  • mto: (3515.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3516.
  • Revision ID: ian.clatworthy@canonical.com-20080513062538-a6g3zuw1ii1ut2rt
add tests for Tree.get_attributes

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
import bzrlib
25
25
from bzrlib import (
 
26
    conflicts as _mod_conflicts,
26
27
    delta,
27
28
    osutils,
 
29
    properties,
28
30
    revision as _mod_revision,
29
 
    conflicts as _mod_conflicts,
30
31
    symbol_versioning,
31
32
    )
32
33
from bzrlib.decorators import needs_read_lock
304
305
        """
305
306
        provider = self._get_attributes_provider()
306
307
        for path in path_names:
307
 
            yield provider.get_properties(path, names)
 
308
            yield provider.get_properties(path, attr_names)
308
309
 
309
310
    def _get_attributes_provider(self):
310
311
        """Get the source to get attributes from.
313
314
        """
314
315
        # Note: In the future, attributes may be found by looking in
315
316
        # the tree as well, not just in the user configuration
316
 
        return properties._get_user_properties_provider
 
317
        return properties._user_properties_provider
317
318
 
318
319
    def get_symlink_target(self, file_id):
319
320
        """Get the target for a given file_id.