def test_executable_changed(self): tree = self.make_svn_branch_and_tree("d", "dc") dc = self.get_commit_editor(tree.branch.base) dc.add_file("file").modify(b"x") dc.close() self.client_update("dc") self.client_set_prop("dc/file", "svn:executable", "*") tree = SvnBasisTree(tree) self.assertFalse(tree.is_executable("file"))
def test_executable_link(self): self.requireFeature(SymlinkFeature) repos_url = self.make_client("d", "dc") dc = self.get_commit_editor(repos_url) file = dc.add_file("file") file.modify(b"link target") file.change_prop("svn:special", "*") file.change_prop("svn:executable", "*") dc.close() try: self.client_update("dc") except subvertpy.SubversionException as e: if e.args[1] == subvertpy.ERR_WC_BAD_ADM_LOG: raise TestSkipped("Unable to run test with svn 1.4") raise wt = WorkingTree.open("dc") tree = SvnBasisTree(wt) self.assertFalse(tree.is_executable("file")) self.assertFalse(wt.is_executable("file"))
file = dc.add_file("file") file.modify("link target") file.change_prop("svn:special", "*") file.change_prop("svn:executable", "*") dc.close() try: self.client_update("dc") except subvertpy.SubversionException, (msg, num): if num == subvertpy.ERR_WC_BAD_ADM_LOG: raise TestSkipped("Unable to run test with svn 1.4") raise wt = WorkingTree.open("dc") tree = SvnBasisTree(wt) self.assertFalse(tree.is_executable("file")) self.assertFalse(wt.is_executable("file")) class TestInventoryExternals(SubversionTestCase): def test_add_nested_norev(self): """Add a nested tree with no specific revision referenced.""" branch = self.make_svn_branch('d', lossy=True) repos = branch.repository mapping = repos.get_mapping() inv = Inventory(root_id='blabloe') inventory_add_external(inv, 'blabloe', 'blie/bla', mapping.revision_id_foreign_to_bzr((repos.uuid, branch.get_branch_path(), 1)), None, branch.base) expected_ie = TreeReference(