~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-22 01:36:42 UTC
  • mfrom: (4544.2.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090722013642-hejy07x9ub06tioj
(robertc) Add interface enforcement for the behaviour of iter_changes
        with missing subtrees with explicit paths - the whole subtree
        is returned. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
        return osutils.lexists(pathjoin(
436
436
                    self.basedir, row[0].decode('utf8'), row[1].decode('utf8')))
437
437
 
 
438
    def has_or_had_id(self, file_id):
 
439
        state = self.current_dirstate()
 
440
        row, parents = self._get_entry(file_id=file_id)
 
441
        return row is not None
 
442
 
438
443
    @needs_read_lock
439
444
    def id2path(self, file_id):
440
445
        "Convert a file-id to a path."