~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Have a defined result for Tree.path_content_summary() for unversioned files.

WT.path_content_summary() was failing because it was trying to look up
the object in the working inventory, and that has no record for unversioned
content.
PreviewTree seems to be a bit indeterminant. Aaron claims it should also
return a 'file' and the info it knows about, but it currently returns 'missing'.
That is now marked as a 'knownFailure'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
636
636
 
637
637
    def _is_executable_from_path_and_stat_from_basis(self, path, stat_result):
638
638
        file_id = self.path2id(path)
 
639
        if file_id is None:
 
640
            # For unversioned files on win32, we just assume they are not
 
641
            # executable
 
642
            return False
639
643
        return self._inventory[file_id].executable
640
644
 
641
645
    def _is_executable_from_path_and_stat_from_stat(self, path, stat_result):