53
53
os.rename('tree/subtree', 'tree/subtree2/subtree')
55
55
('Cannot join .*subtree. Parent directory is not versioned',),
57
57
# disabled because this gives an ugly error at present -- mbp 20070306
59
59
## ('Cannot join .*subtree. Parent directory is not versioned',),
60
60
## 'join', '--reference', 'tree/subtree2/subtree')
61
self.run_bzr_error(('Not a branch:.*subtree2',), 'join',
64
64
def test_join_reference(self):
65
65
"""Join can add a reference if --reference is supplied"""
66
66
base_tree, sub_tree = self.make_trees()
67
self.run_bzr('join', '.', '--reference', working_dir='tree/subtree')
69
69
self.addCleanup(sub_tree.unlock)
70
70
self.assertEqual('file1-id', sub_tree.path2id('file1'))