~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_inv.py

  • Committer: Robert Collins
  • Date: 2007-10-22 01:23:51 UTC
  • mfrom: (2921.3.1 graph)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20071022012351-16lm27an2lbzk038
Merge graph history-access bugfix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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'])
44
44
        if has_symlinks():
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')
50
50
        if has_symlinks():
51
51
            os.unlink('symlink')
52
52
            os.symlink('target2', 'symlink')