~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testchangeset.py

  • Committer: Aaron Bentley
  • Date: 2005-07-27 18:46:33 UTC
  • mto: (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: abentley@panoramicfeedback.com-20050727184633-8b8601908bcdb90a
Switched to native patch application, added tests for terminating newlines

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
                #'b1/with\ttab.txt'
431
431
                ])
432
432
        open('b1/sub/sub/emptyfile.txt', 'wb').close()
 
433
        open('b1/dir/nolastnewline.txt', 'wb').write('bloop')
433
434
        self.b1.add([
434
435
                'with space.txt'
435
436
                , 'dir'
436
437
                , 'dir/filein subdir.c'
437
438
                , 'dir/WithCaps.txt'
438
439
                , 'dir/trailing space '
 
440
                , 'dir/nolastnewline.txt'
439
441
                , 'sub'
440
442
                , 'sub/sub'
441
443
                , 'sub/sub/nonempty.txt'
477
479
        # Modified files
478
480
        open('b1/sub/dir/WithCaps.txt', 'ab').write('\nAdding some text\n')
479
481
        open('b1/sub/dir/trailing space ', 'ab').write('\nAdding some\nDOS format lines\n')
 
482
        open('b1/sub/dir/nolastnewline.txt', 'ab').write('\n')
480
483
        self.b1.rename_one('sub/dir/trailing space ', 'sub/ start and end space ')
481
484
        self.b1.commit('Modified files', rev_id='a@cset-0-5')
482
485
        cset = self.get_valid_cset('a@cset-0-4', 'a@cset-0-5')