Rev 94: Fix Loom cloning with the bzr.dev API change. in http://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/

Robert Collins robertc at robertcollins.net
Sat Feb 28 11:02:42 GMT 2009


At http://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/

------------------------------------------------------------
revno: 94
revision-id: robertc at robertcollins.net-20090228110228-wrigo66hotmdlo2u
parent: john at arbash-meinel.com-20090128225711-u101lbz0kjmbkf3l
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Sat 2009-02-28 22:02:28 +1100
message:
  Fix Loom cloning with the bzr.dev API change.
=== modified file 'branch.py'
--- a/branch.py	2008-10-17 19:24:04 +0000
+++ b/branch.py	2009-02-28 11:02:28 +0000
@@ -226,13 +226,15 @@
         raise bzrlib.errors.UpgradeRequired(self.base)
 
     @needs_read_lock
-    def clone(self, to_bzrdir, revision_id=None):
+    def clone(self, to_bzrdir, revision_id=None, repository_policy=None):
         """Clone the branch into to_bzrdir.
         
         This differs from the base clone by cloning the loom and 
         setting the current nick to the top of the loom.
         """
         result = self._format.initialize(to_bzrdir)
+        if repository_policy is not None:
+            repository_policy.configure_branch(result)
         self.copy_content_into(result, revision_id=revision_id)
         return result
 




More information about the bazaar-commits mailing list