~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

Move add from Branch to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        b.working_tree().commit('commit pointless tree',
33
33
                 allow_pointless=True)
34
34
 
35
 
        b.add('hello.txt')
 
35
        b.working_tree().add('hello.txt')
36
36
        
37
37
        b.working_tree().commit('commit first added file',
38
38
                 allow_pointless=False)
52
52
        """Test renaming directories and the files within them."""
53
53
        b = Branch.initialize('.')
54
54
        self.build_tree(['dir/', 'dir/sub/', 'dir/sub/file'])
55
 
        b.add(['dir', 'dir/sub', 'dir/sub/file'])
 
55
        b.working_tree().add(['dir', 'dir/sub', 'dir/sub/file'])
56
56
 
57
57
        b.working_tree().commit('create initial state')
58
58