276
276
self.assertEqual(cset_txt.readline(), '# \n')
278
278
rev = self.b1.get_revision(rev_id)
279
self.assertEqual(cset_txt.readline(), '# committer: %s\n' % rev.committer)
279
self.assertEqual(cset_txt.readline().decode('utf-8'),
280
u'# committer: %s\n' % rev.committer)
281
282
open(',,cset', 'wb').write(cset_txt.getvalue())
464
467
cset = self.get_valid_cset('a@cset-0-2', 'a@cset-0-4', auto_commit=True)
465
468
cset = self.get_valid_cset('a@cset-0-3', 'a@cset-0-4', auto_commit=True)
471
open('b1/sub/dir/WithCaps.txt', 'ab').write('\nAdding some text\n')
472
#open('b1/sub/dir/trailing space ', 'ab').write('\nAdding some\nDOS format lines\n')
473
#self.b1.rename_one('sub/dir/trailing space ', 'sub/start and end space')
474
self.b1.commit('Modified files', rev_id='a@cset-0-5')
475
cset = self.get_valid_cset('a@cset-0-4', 'a@cset-0-5')
476
cset = self.get_valid_cset('a@cset-0-4', 'a@cset-0-5', auto_commit=True)
477
cset = self.get_valid_cset(None, 'a@cset-0-5', auto_commit=True)
479
# Handle international characters
480
f = open(u'b1/with Dod\xe9', 'wb')
482
u'With international man of mystery\n'
483
u'William Dod\xe9\n').encode('utf-8'))
484
self.b1.add([u'with Dod\xe9'])
485
# BUG: (sort of) You must set verbose=False, so that python doesn't try
486
# and print the name of William Dode as part of the commit
487
self.b1.commit(u'i18n commit from William Dod\xe9', rev_id='a@cset-0-6',
488
committer=u'William Dod\xe9', verbose=False)
489
cset = self.get_valid_cset('a@cset-0-5', 'a@cset-0-6')
490
cset = self.get_valid_cset('a@cset-0-5', 'a@cset-0-6', auto_commit=True)
491
cset = self.get_valid_cset(None, 'a@cset-0-6', auto_commit=True)