90
90
return self.log_catcher.revisions
92
92
def assertLogRevnos(self, args, expected_revnos, working_dir='.'):
93
self.run_bzr(['log'] + args, working_dir=working_dir)
93
err, out = self.run_bzr(['log'] + args, working_dir=working_dir)
94
self.assertEqual('', out)
95
self.assertEqual('', err)
94
96
self.assertEqual(expected_revnos,
95
97
[r.revno for r in self.get_captured_revisions()])
552
554
def test_include_sidelines(self):
553
555
# Confirm --include-sidelines gives the same output as -n0
554
self.assertLogRevnos(['--include-sidelines'],
555
['2', '1.1.2', '1.2.1', '1.1.1', '1'],
556
working_dir='level0')
557
self.assertLogRevnos(['--include-sidelines'],
558
['2', '1.1.2', '1.2.1', '1.1.1', '1'],
559
working_dir='level0')
560
out_im, err_im = self.run_bzr('log --include-sidelines',
561
working_dir='level0')
562
out_n0, err_n0 = self.run_bzr('log -n0', working_dir='level0')
563
self.assertEqual('', err_im)
564
self.assertEqual('', err_n0)
565
self.assertEqual(out_im, out_n0)
556
expected = ['2', '1.1.2', '1.2.1', '1.1.1', '1']
557
self.assertLogRevnos(['--include-sidelines'],
558
expected, working_dir='level0')
559
self.assertLogRevnos(['--include-sidelines'],
560
expected, working_dir='level0')
567
562
def test_force_merge_revisions_N(self):
568
563
self.assertLogRevnos(['-n2'],