~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

Merge bzr.dev into cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1372
1372
 
1373
1373
 
1374
1374
class DirStateWorkingTreeFormat(WorkingTreeFormat3):
 
1375
 
1375
1376
    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,
1376
1377
                   accelerator_tree=None, hardlink=False):
1377
1378
        """See WorkingTreeFormat.initialize().
1832
1833
        entry = self._get_entry(file_id=file_id)[1]
1833
1834
        if entry is None:
1834
1835
            raise errors.NoSuchId(tree=self, file_id=file_id)
1835
 
        return dirstate.DirState._minikind_to_kind[entry[1][0]]
 
1836
        parent_index = self._get_parent_index()
 
1837
        return dirstate.DirState._minikind_to_kind[entry[parent_index][0]]
1836
1838
 
1837
1839
    def stored_kind(self, file_id):
1838
1840
        """See Tree.stored_kind"""