Rev 2372: Use BzrDir.set_branch_format() rather than setting it directly. in http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/checkout_uses_branch_format_93854
John Arbash Meinel
john at arbash-meinel.com
Thu Mar 22 20:08:07 GMT 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.15-dev/checkout_uses_branch_format_93854
------------------------------------------------------------
revno: 2372
revision-id: john at arbash-meinel.com-20070322200752-4b29yobz92a38tqp
parent: john at arbash-meinel.com-20070322194159-fxl08l4zah9df24r
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: checkout_uses_branch_format_93854
timestamp: Thu 2007-03-22 15:07:52 -0500
message:
Use BzrDir.set_branch_format() rather than setting it directly.
modified:
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
-------------- next part --------------
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2007-03-22 19:41:59 +0000
+++ b/bzrlib/branch.py 2007-03-22 20:07:52 +0000
@@ -690,9 +690,7 @@
format.repository_format = weaverepo.RepositoryFormat7()
else:
format = self.repository.bzrdir.checkout_metadir()
- # TODO: jam 20070322 Why is 'repository_format' public, but
- # _workingtree_format and _branch_format private?
- format._branch_format = self._format
+ format.set_branch_format(self._format)
return format
def create_checkout(self, to_location, revision_id=None,
More information about the bazaar-commits
mailing list