298
298
fname = self.info['filename']
299
299
txt = self.run_bzr_decode(['file-id', fname])
301
# TODO: jam 20060106 We don't support non-ascii file ids yet,
301
# TODO: jam 20060106 We don't support non-ascii file ids yet,
302
302
# so there is nothing which would fail in ascii encoding
303
303
# This *should* be retcode=3
304
304
txt = self.run_bzr_decode(['file-id', fname], encoding='ascii')
319
319
txt = self.run_bzr_decode(['file-path', path])
321
# TODO: jam 20060106 We don't support non-ascii file ids yet,
321
# TODO: jam 20060106 We don't support non-ascii file ids yet,
322
322
# so there is nothing which would fail in ascii encoding
323
323
# This *should* be retcode=3
324
324
txt = self.run_bzr_decode(['file-path', path], encoding='ascii')
326
326
def test_revision_history(self):
327
# TODO: jam 20060106 We don't support non-ascii revision ids yet,
327
# TODO: jam 20060106 We don't support non-ascii revision ids yet,
328
328
# so there is nothing which would fail in ascii encoding
329
329
txt = self.run_bzr_decode('revision-history')
331
331
def test_ancestry(self):
332
# TODO: jam 20060106 We don't support non-ascii revision ids yet,
332
# TODO: jam 20060106 We don't support non-ascii revision ids yet,
333
333
# so there is nothing which would fail in ascii encoding
334
334
txt = self.run_bzr_decode('ancestry')
336
336
def test_diff(self):
337
# TODO: jam 20060106 diff is a difficult one to test, because it
337
# TODO: jam 20060106 diff is a difficult one to test, because it
338
338
# shouldn't encode the file contents, but it needs some sort
339
339
# of encoding for the paths, etc which are displayed.
340
340
self.build_tree_contents([(self.info['filename'], 'newline\n')])
413
413
self.wt.commit(u'Renamed %s => %s' % (fname, fname2))
415
415
txt = self.run_bzr_decode(['touching-revisions', fname2])
416
expected_txt = (u' 3 added %s\n'
416
expected_txt = (u' 3 added %s\n'
417
417
u' 4 renamed %s => %s\n'
418
418
% (fname, fname, fname2))
419
419
self.assertEqual(expected_txt, txt)
436
436
fname = self.info['filename'] + '2'
437
437
self.build_tree_contents([(fname, 'unknown\n')])
439
# TODO: jam 20060112 bzr unknowns is the only one which
439
# TODO: jam 20060112 bzr unknowns is the only one which
440
440
# quotes paths do we really want it to?
441
441
# awilkins 20080521 added and modified do it now as well
442
442
txt = self.run_bzr_decode('unknowns')