~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionnamespaces.py

[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
        These identify revisions by date, etc."""
34
34
 
35
 
        b = Branch.initialize('.')
 
35
        b = Branch.initialize(u'.')
36
36
 
37
37
        b.working_tree().commit('Commit one', rev_id='a@r-0-1', timestamp=time.time() - 60*60*24)
38
38
        b.working_tree().commit('Commit two', rev_id='a@r-0-2')
84
84
        """Ensure that the branch namespace pulls in the requisite content."""
85
85
        self.build_tree(['branch1/', 'branch1/file', 'branch2/'])
86
86
        branch = Branch.initialize('branch1')
87
 
        branch.add(['file'])
 
87
        branch.working_tree().add(['file'])
88
88
        branch.working_tree().commit('add file')
89
89
        copy_branch(branch, 'branch2')
90
90
        print >> open('branch2/file', 'w'), 'new content'