~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Aaron Bentley
  • Date: 2008-01-03 22:14:40 UTC
  • mto: This revision was merged to the branch mainline in revision 3241.
  • Revision ID: abentley@panoramicfeedback.com-20080103221440-0y6atamnscjnoh9s
Updates from review

Show diffs side-by-side

added added

removed removed

Lines of Context:
499
499
            mode = os.lstat(self.abspath(path)).st_mode
500
500
            return bool(stat.S_ISREG(mode) and stat.S_IEXEC & mode)
501
501
 
502
 
    def iter_all_file_ids(self):
 
502
    def all_file_ids(self):
503
503
        """See Tree.iter_all_file_ids"""
504
504
        self._must_be_locked()
 
505
        result = set()
505
506
        for key, tree_details in self.current_dirstate()._iter_entries():
506
507
            if tree_details[0][0] in ('a', 'r'): # relocated
507
508
                continue
508
 
            yield key[2]
 
509
            result.add(key[2])
 
510
        return result
509
511
 
510
512
    @needs_read_lock
511
513
    def __iter__(self):