37
37
super(TestEntryDiffing, self).setUp()
38
38
self.wt = self.make_branch_and_tree('.')
39
39
self.branch = self.wt.branch
40
print >> open('file', 'wb'), 'foo'
41
print >> open('binfile', 'wb'), 'foo'
40
open('file', 'wb').write('foo\n')
41
open('binfile', 'wb').write('foo\n')
42
42
self.wt.add(['file'], ['fileid'])
43
43
self.wt.add(['binfile'], ['binfileid'])
45
45
os.symlink('target1', 'symlink')
46
46
self.wt.add(['symlink'], ['linkid'])
47
47
self.wt.commit('message_1', rev_id = '1')
48
print >> open('file', 'wb'), 'bar'
49
print >> open('binfile', 'wb'), 'x' * 1023 + '\x00'
48
open('file', 'wb').write('bar\n')
49
open('binfile', 'wb').write('x' * 1023 + '\x00\n')
51
51
os.unlink('symlink')
52
52
os.symlink('target2', 'symlink')