Rev 6521: Use development-subtree so the tree reference tests pass. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697
John Arbash Meinel
john at arbash-meinel.com
Thu Sep 6 11:48:53 UTC 2012
At http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697
------------------------------------------------------------
revno: 6521
revision-id: john at arbash-meinel.com-20120906114828-nk2yjs0tdhgligo5
parent: john at arbash-meinel.com-20120906112013-x4s069psvr4f8mvh
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-remote-wt-tests-1046697
timestamp: Thu 2012-09-06 15:48:28 +0400
message:
Use development-subtree so the tree reference tests pass.
The support is actually determined by the repository. But the bug is that
while Tree.supports_tree_reference() returns False, tree.add_reference()
passes without complaint.
-------------- next part --------------
=== modified file 'bzrlib/workingtree_4.py'
--- a/bzrlib/workingtree_4.py 2012-09-06 11:20:13 +0000
+++ b/bzrlib/workingtree_4.py 2012-09-06 11:48:28 +0000
@@ -1679,7 +1679,9 @@
def _get_matchingbzrdir(self):
"""Overrideable method to get a bzrdir for testing."""
- return bzrdir.format_registry.make_bzrdir('2a')
+ # We use 'development-subtree' instead of '2a', because we have a
+ # few tests that want to test tree references
+ return bzrdir.format_registry.make_bzrdir('development-subtree')
class DirStateRevisionTree(InventoryTree):
More information about the bazaar-commits
mailing list