/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/workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-05-27 02:54:05 UTC
  • mto: (1711.2.26 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1734.
  • Revision ID: john@arbash-meinel.com-20060527025405-bdc9f0cd95bfef08
use iter_entries instead of lots of id2path calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
        path = inv.id2path(file_id)
519
519
        return bzrlib.osutils.lexists(self.abspath(path))
520
520
 
 
521
    def has_file_or_id(self, filename, file_id):
 
522
        if not self._inventory.has_id(file_id):
 
523
            return False
 
524
        return bzrlib.osutils.lexists(self.abspath(filename))
 
525
 
521
526
    def has_or_had_id(self, file_id):
522
527
        if file_id == self.inventory.root.file_id:
523
528
            return True