~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-20 08:10:38 UTC
  • mfrom: (1740.6.2 bzr.mbp.remove-scratch)
  • Revision ID: pqm@pqm.ubuntu.com-20060620081038-8eb4543e54b8491c
(mbp) remove Scratch objects

Show diffs side-by-side

added added

removed removed

Lines of Context:
928
928
 
929
929
        These are files in the working directory that are not versioned or
930
930
        control files or ignored.
931
 
        
932
 
        >>> from bzrlib.bzrdir import ScratchDir
933
 
        >>> d = ScratchDir(files=['foo', 'foo~'])
934
 
        >>> b = d.open_branch()
935
 
        >>> tree = d.open_workingtree()
936
 
        >>> map(str, tree.unknowns())
937
 
        ['foo']
938
 
        >>> tree.add('foo')
939
 
        >>> list(b.unknowns())
940
 
        []
941
 
        >>> tree.remove('foo')
942
 
        >>> list(b.unknowns())
943
 
        [u'foo']
944
931
        """
945
932
        for subp in self.extras():
946
933
            if not self.is_ignored(subp):