/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Move Branch.unknowns() to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
526
526
            raise BzrError("%r is not present in revision %s" % (file, revno))
527
527
        tree.print_file(file_id)
528
528
 
529
 
    def unknowns(self):
530
 
        """Return all unknown files.
531
 
 
532
 
        These are files in the working directory that are not versioned or
533
 
        control files or ignored.
534
 
        
535
 
        >>> from bzrlib.workingtree import WorkingTree
536
 
        >>> b = ScratchBranch(files=['foo', 'foo~'])
537
 
        >>> map(str, b.unknowns())
538
 
        ['foo']
539
 
        >>> WorkingTree(b.base, b).add('foo')
540
 
        >>> list(b.unknowns())
541
 
        []
542
 
        >>> WorkingTree(b.base, b).remove('foo')
543
 
        >>> list(b.unknowns())
544
 
        [u'foo']
545
 
        """
546
 
        return self.working_tree().unknowns()
547
 
 
548
529
    @needs_write_lock
549
530
    def append_revision(self, *revision_ids):
550
531
        for revision_id in revision_ids: