~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

[merge] win32 fixes (alexey)

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
        self.runbzr('diff')
353
353
 
354
354
    def test_diff_branches(self):
355
 
        self.build_tree(['branch1/', 'branch1/file', 'branch2/'])
 
355
        self.build_tree(['branch1/', 'branch1/file', 'branch2/'], line_endings='binary')
356
356
        branch = Branch.initialize('branch1')
357
357
        branch.add(['file'])
358
358
        branch.working_tree().commit('add file')
359
359
        copy_branch(branch, 'branch2')
360
 
        print >> open('branch2/file', 'w'), 'new content'
 
360
        print >> open('branch2/file', 'wb'), 'new content'
361
361
        branch2 = Branch.open('branch2')
362
362
        branch2.working_tree().commit('update file')
363
363
        # should open branch1 and diff against branch2,