924
922
self.prepare_tree()
926
924
self.assertLogRevnos(['dir2', 'file5'], ['5', '3'])
927
class MainlineGhostTests(TestLogWithLogCatcher):
930
super(MainlineGhostTests, self).setUp()
931
tree = self.make_branch_and_tree('')
932
tree.set_parent_ids(["spooky"], allow_leftmost_as_ghost=True)
934
tree.commit('msg1', rev_id='rev1')
935
tree.commit('msg2', rev_id='rev2')
937
def test_log_range(self):
938
self.assertLogRevnos(["-r1..2"], ["2", "1"])
940
def test_log_norange(self):
941
self.assertLogRevnos([], ["2", "1"])
943
def test_log_range_open_begin(self):
944
raise tests.KnownFailure("log with ghosts fails. bug #726466")
945
(stdout, stderr) = self.run_bzr(['log', '-r..2'], retcode=3)
946
self.assertEqual(["2", "1"],
947
[r.revno for r in self.get_captured_revisions()])
948
self.assertEquals("bzr: ERROR: Further revision history missing.", stderr)
950
def test_log_range_open_end(self):
951
self.assertLogRevnos(["-r1.."], ["2", "1"])