~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Robert Collins
  • Date: 2007-03-02 04:40:12 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070302044012-otqrdw1uhxrw3ar7
Move unknown detection in long status into the delta creation, saving a tree-scan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
        """
106
106
        return []
107
107
 
 
108
    def extras(self):
 
109
        """For trees that can have unversioned files, return all such paths."""
 
110
        return []
 
111
 
108
112
    def get_parent_ids(self):
109
113
        """Get the parent ids for this tree. 
110
114
 
558
562
            # All files are unversioned, so just return an empty delta
559
563
            # _compare_trees would think we want a complete delta
560
564
            result = delta.TreeDelta()
561
 
            result.unversioned = list(specific_files)
 
565
            fake_entry = InventoryFile('unused', 'unused', 'unused')
 
566
            result.unversioned = [(path, None,
 
567
                self.target._comparison_data(fake_entry, path)[0]) for path in
 
568
                specific_files]
562
569
            return result
563
570
        return delta._compare_trees(self.source, self.target, want_unchanged,
564
571
            specific_files, include_root, extra_trees=extra_trees,