~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testtestament.py

[merge] refactoring of branch vs working tree, etc (robertc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        build_tree_contents([('hello', 'contents of hello file'),
45
45
                             ('src/', ),
46
46
                             ('src/foo.c', 'int main()\n{\n}\n')])
47
 
        b.add(['hello', 'src', 'src/foo.c'],
48
 
              ['hello-id', 'src-id', 'foo.c-id'])
 
47
        b.working_tree().add(['hello', 'src', 'src/foo.c'],
 
48
                             ['hello-id', 'src-id', 'foo.c-id'])
49
49
        b.working_tree().commit(message='add files and directories',
50
50
                 timestamp=1129025483,
51
51
                 timezone=36000,
96
96
        if not has_symlinks():
97
97
            return
98
98
        os.symlink('wibble/linktarget', 'link')
99
 
        self.b.add(['link'], ['link-id'])
 
99
        self.b.working_tree().add(['link'], ['link-id'])
100
100
        self.b.working_tree().commit(message='add symlink',
101
101
                 timestamp=1129025493,
102
102
                 timezone=36000,