21
21
class TestFindMergeBase(ExternalBase):
22
23
def test_find_merge_base(self):
26
self.runbzr('commit -m foo --unchanged')
27
self.runbzr('branch . ../b')
28
q = self.run_bzr('find-merge-base', '.', '../b', backtick=True)
29
self.runbzr('commit -m bar --unchanged')
27
self.run_bzr('commit -m foo --unchanged')
28
self.run_bzr('branch . ../b')
29
q = self.run_bzr(['find-merge-base', '.', '../b'])[0]
30
self.run_bzr('commit -m bar --unchanged')
31
self.runbzr('commit -m baz --unchanged')
32
r = self.run_bzr('find-merge-base', '.', '../a', backtick=True)
32
self.run_bzr('commit -m baz --unchanged')
33
r = self.run_bzr(['find-merge-base', '.', '../a'])[0]
33
34
self.assertEqual(q, r)
36
def test_find_null_merge_base(self):
37
tree = self.make_branch_and_tree('foo')
38
tree.commit('message')
39
tree2 = self.make_branch_and_tree('bar')
40
r = self.run_bzr('find-merge-base', 'foo', 'bar')[0]
41
self.assertEqual('merge base is revision null:\n', r)