Rev 6511: Switch from 'clone' to 'sprout' for the executable test. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697

John Arbash Meinel john at arbash-meinel.com
Thu Sep 6 08:44:53 UTC 2012


At http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697

------------------------------------------------------------
revno: 6511
revision-id: john at arbash-meinel.com-20120906084428-n56g3myxk9mhj03n
parent: john at arbash-meinel.com-20120906082520-e8tv3gf07rfr9754
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-remote-wt-tests-1046697
timestamp: Thu 2012-09-06 12:44:28 +0400
message:
  Switch from 'clone' to 'sprout' for the executable test.
  
  'cmd_branch' seems to use sprout anyway, and 'clone' from a RemoteBranch
  will create a target branch that doesn't have a WT, because the source
  doesn't have a WT.
-------------- next part --------------
=== modified file 'bzrlib/tests/per_workingtree/test_executable.py'
--- a/bzrlib/tests/per_workingtree/test_executable.py	2011-12-19 16:59:14 +0000
+++ b/bzrlib/tests/per_workingtree/test_executable.py	2012-09-06 08:44:28 +0000
@@ -71,8 +71,7 @@
         self.wt.commit('adding a,b', rev_id='r1')
         # Now make sure that 'bzr branch' also preserves the
         # executable bit
-        # TODO: Maybe this should be a blackbox test
-        dir2 = self.wt.branch.bzrdir.clone('b2', revision_id='r1')
+        dir2 = self.wt.branch.bzrdir.sprout('b2', revision_id='r1')
         wt2 = dir2.open_workingtree()
         self.assertEqual(['r1'], wt2.get_parent_ids())
         self.assertEqual('r1', wt2.branch.last_revision())



More information about the bazaar-commits mailing list