~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-29 07:30:54 UTC
  • Revision ID: mbp@sourcefrog.net-20050329073054-b48cef771d11b9f6
new common Tree.extras() to support both unknowns
and ignored

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
 
236
236
 
237
237
    def unknowns(self):
 
238
        for subp in self.extras():
 
239
            if not self.is_ignored(subp):
 
240
                yield subp
 
241
 
 
242
 
 
243
    def extras(self):
238
244
        """Yield all unknown files in this WorkingTree.
239
245
 
240
246
        If there are any unknown directories then only the directory is
261
267
            fl.sort()
262
268
            for subf in fl:
263
269
                subp = appendpath(path, subf)
264
 
                if self.is_ignored(subp):
265
 
                    continue
266
270
                yield subp
267
271
                
268
272