Rev 1383: Couple more. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Fri Jun 27 20:11:12 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1383
revision-id: jelmer at samba.org-20080627191110-j0t5mtvnlbokmzo0
parent: jelmer at samba.org-20080627185607-554l1oh62x0g3spq
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-06-27 21:11:10 +0200
message:
  Couple more.
modified:
  tests/test_tree.py             test_tree.py-20070103204350-pr8nupes7e5sd2wr-1
=== modified file 'tests/test_tree.py'
--- a/tests/test_tree.py	2008-06-27 18:56:07 +0000
+++ b/tests/test_tree.py	2008-06-27 19:11:10 +0000
@@ -46,10 +46,12 @@
         self.assertTrue(tree.inventory[tree.inventory.path2id("file")].executable)
 
     def test_executable_changed(self):
-        self.make_client("d", "dc")
-        self.build_tree({"dc/file": "x"})
-        self.client_add("dc/file")
-        self.client_commit("dc", "executable")
+        repos_url = self.make_client("d", "dc")
+
+        dc = self.get_commit_editor(repos_url)
+        dc.add_file("file").modify("x")
+        dc.close()
+
         self.client_update("dc")
         self.client_set_prop("dc/file", "svn:executable", "*")
         tree = SvnBasisTree(self.open_checkout("dc"))
@@ -111,12 +113,17 @@
     def test_executable_link(self):
         if not has_symlinks():
             return
-        self.make_client("d", "dc")
-        os.symlink("target", "dc/file")
-        self.build_tree({"dc/file": "x"})
-        self.client_add("dc/file")
-        self.client_set_prop("dc/file", "svn:executable", "*")
-        self.client_commit("dc", "exe1")
+        repos_url = self.make_client("d", "dc")
+
+        dc = self.get_commit_editor(repos_url)
+        file = dc.add_file("file")
+        file.modify("link target")
+        file.change_prop("svn:special", "*")
+        file.change_prop("svn:executable", "*")
+        dc.close()
+
+        self.client_update("dc")
+
         wt = self.open_checkout("dc")
         tree = SvnBasisTree(wt)
         self.assertFalse(tree.inventory[tree.inventory.path2id("file")].executable)




More information about the bazaar-commits mailing list