~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2006-04-13 05:51:35 UTC
  • mto: This revision was merged to the branch mainline in revision 1662.
  • Revision ID: mbp@sourcefrog.net-20060413055135-1a40ec5436f0dbd0
diff on unversiond files should give an error (Malone #3619)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
 
117
117
        :return: set of paths.
118
118
        """
119
 
        return set((p for p in paths if not self.has_filename(p)))
 
119
        # NB: we specifically *don't* call self.has_filename, because for
 
120
        # WorkingTrees that can indicate files that exist on disk but that 
 
121
        # are not versioned.
 
122
        pred = self.inventory.has_filename
 
123
        return set((p for p in paths if not pred(p)))
120
124
        
121
125
        
122
126
class RevisionTree(Tree):