46
46
def test_link_fails_if_modified(self):
47
47
"""If the file to be linked has modified text, don't link."""
48
49
self.build_tree_contents([('child/foo', 'baz')])
49
50
link_tree(self.child_tree, self.parent_tree)
50
51
self.assertFalse(self.hardlinked())
52
53
def test_link_fails_if_execute_bit_changed(self):
53
54
"""If the file to be linked has modified execute bit, don't link."""
54
56
tt = TreeTransform(self.child_tree)
56
58
trans_id = tt.trans_id_tree_file_id('foo-id')