~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-24 11:46:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5685.
  • Revision ID: jelmer@samba.org-20110224114657-j96mpw1n5burw26v
Add stub WorkingTreeFormat.initialize().

Show diffs side-by-side

added added

removed removed

Lines of Context:
2962
2962
            raise errors.UnknownFormatError(format=format_string,
2963
2963
                                            kind="working tree")
2964
2964
 
 
2965
    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,
 
2966
                   accelerator_tree=None, hardlink=False):
 
2967
        """Initialize a new working tree in a_bzrdir.
 
2968
 
 
2969
        :param a_bzrdir: BzrDir to initialize the working tree in.
 
2970
        :param revision_id: allows creating a working tree at a different
 
2971
            revision than the branch is at.
 
2972
        :param from_branch: Branch to checkout
 
2973
        :param accelerator_tree: A tree which can be used for retrieving file
 
2974
            contents more quickly than the revision tree, i.e. a workingtree.
 
2975
            The revision tree will be used for cases where accelerator_tree's
 
2976
            content is different.
 
2977
        :param hardlink: If true, hard-link files from accelerator_tree,
 
2978
            where possible.
 
2979
        """
 
2980
        raise NotImplementedError(self.initialize)
 
2981
 
2965
2982
    def __eq__(self, other):
2966
2983
        return self.__class__ is other.__class__
2967
2984