Rev 5685: (jelmer) Add stub WorkingTreeFormat.initialize(). (Jelmer Vernooij) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Feb 24 17:39:31 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5685 [merge]
revision-id: pqm at pqm.ubuntu.com-20110224173928-bj55mr0wx9k1zl6u
parent: pqm at pqm.ubuntu.com-20110224135532-b5zu78in53r1ptc1
parent: jelmer at samba.org-20110224114657-j96mpw1n5burw26v
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2011-02-24 17:39:28 +0000
message:
  (jelmer) Add stub WorkingTreeFormat.initialize(). (Jelmer Vernooij)
modified:
  bzrlib/workingtree.py          workingtree.py-20050511021032-29b6ec0a681e02e3
=== modified file 'bzrlib/workingtree.py'
--- a/bzrlib/workingtree.py	2011-02-23 12:55:32 +0000
+++ b/bzrlib/workingtree.py	2011-02-24 11:46:57 +0000
@@ -2962,6 +2962,23 @@
             raise errors.UnknownFormatError(format=format_string,
                                             kind="working tree")
 
+    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,
+                   accelerator_tree=None, hardlink=False):
+        """Initialize a new working tree in a_bzrdir.
+
+        :param a_bzrdir: BzrDir to initialize the working tree in.
+        :param revision_id: allows creating a working tree at a different
+            revision than the branch is at.
+        :param from_branch: Branch to checkout
+        :param accelerator_tree: A tree which can be used for retrieving file
+            contents more quickly than the revision tree, i.e. a workingtree.
+            The revision tree will be used for cases where accelerator_tree's
+            content is different.
+        :param hardlink: If true, hard-link files from accelerator_tree,
+            where possible.
+        """
+        raise NotImplementedError(self.initialize)
+
     def __eq__(self, other):
         return self.__class__ is other.__class__
 




More information about the bazaar-commits mailing list