~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

Move add from Branch to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
    def test_diff_branches(self):
319
319
        self.build_tree(['branch1/', 'branch1/file', 'branch2/'])
320
320
        branch = Branch.initialize('branch1')
321
 
        branch.add(['file'])
 
321
        branch.working_tree().add(['file'])
322
322
        branch.working_tree().commit('add file')
323
323
        copy_branch(branch, 'branch2')
324
324
        print >> open('branch2/file', 'w'), 'new content'
1153
1153
    def test_log(self):
1154
1154
        self.build_tree(['branch/', 'branch/file'])
1155
1155
        branch = Branch.initialize('branch')
1156
 
        branch.add(['file'])
 
1156
        branch.working_tree().add(['file'])
1157
1157
        branch.working_tree().commit('add file', rev_id='A')
1158
1158
        url = self.get_remote_url('branch/file')
1159
1159
        output = self.capture('log %s' % url)